Skip to content

@queuert/otel

const observabilityAdapter = await createOtelObservabilityAdapter({
meter?: Meter, // From @opentelemetry/api — metrics disabled if omitted
tracer?: Tracer, // From @opentelemetry/api — tracing disabled if omitted
});

Returns Promise<ObservabilityAdapter>.

Both parameters are optional. When neither is provided, all observability operations are noops. Provide meter for metrics, tracer for distributed tracing, or both.

  • Observability — Integration guide for observability
  • OTEL Metrics — Counters, histograms, and gauges
  • OTEL Tracing — Span hierarchy and messaging conventions
  • OTEL Internals — Adapter architecture, W3C context propagation, and transactional buffering