otel-onboarding-style
OTel Onboarding Style
Use native OpenTelemetry APIs. Do not invent helper APIs.
In TypeScript/JavaScript, use the published @superlog/otel-helpers withSpan
helper for bounded business spans and add @superlog/otel-helpers to
package.json when it is not already present. This is required when the package
can be installed. withSpan is the intended replacement for expanding a whole
function into tracer.startActiveSpan(...) plus try / catch / finally. Do
not use helpers to wrap provider SDK calls that OpenInference/provider
instrumentation can observe directly.
Do:
const tracer = trace.getTracer("mugline.api");
const meter = metrics.getMeter("mugline.api");
const ordersSubmitted = meter.createCounter("orders.submitted");
More from superloglabs/skills
otel-livekit-style
LiveKit Agents OpenTelemetry style: entrypoint/session lifecycle spans, shutdown callbacks, session metrics, and LLM turn token counters.
40superlog-onboard
Onboard a project to Superlog by installing OpenTelemetry traces, logs, and metrics across every app and service in the repo. Triggers on requests like 'install Superlog', 'set up Superlog', 'add Superlog telemetry', 'onboard this repo to Superlog', 'instrument with OpenTelemetry for Superlog'.
39otel-supabase-edge-style
Supabase Edge Function observability style: tiny provider-neutral OTel-shaped shim, OTLP export config, traces/logs/metrics, and LLM cost metrics.
39otel-nextjs-style
Next.js/Vercel OpenTelemetry style: instrumentation.ts, @vercel/otel bootstrap, native @opentelemetry/api call sites, inline public ingest token, and no raw NodeSDK replacement.
39otel-expo-style
Expo / React Native OpenTelemetry style: bootstrap guards, init ordering, inline public ingest token, mobile-compatible exporters, and product action spans.
38otel-python-style
Python OpenTelemetry style: module-scope tracers/meters, decorators for bounded work, error spans, logs, and no wrappers.
38