Classes

c
NoopTelemetryService

A telemetry service that does nothing — used when no exporter is configured.

Functions

Interfaces

I
InstrumentationConfig

Per-instrumentation entry. Presence of the parent key enables; this configures or injects.

  • config: Readonly<Record<string, unknown>>

    Opaque config object forwarded VERBATIM to the OTel instrumentation constructor's config argument (the LAZY half). Framework-owned and untyped on purpose: OTel instrumentation config surfaces evolve independently and re-typing them here would fabricate field names and drift.

  • instrumentation: unknown

    An already-constructed OTel Instrumentation instance — the INJECT half of the inject-or-lazy seam. When set, the registry skips the lazy npm: import and uses this instance directly.

I
InstrumentationsConfig

Configuration for auto-instrumentations.

I
ISpan

A span represents a single operation within a trace.

I
ITelemetryService

Telemetry service — the primary API for creating spans.

I
SamplingConfig

Sampling configuration.

I
SpanOptions

Options for span creation.

I
TelemetryContext

Opaque handle representing the parent context for span creation.

I
TelemetryPluginOptions

Options for the TelemetryPlugin.

I
TracerHost

The host seam returned by loadOtelTracerProvider.

Type Aliases

T
SpanAttributeValue =
string
| number
| boolean
| ReadonlyArray<string | number | boolean>

Attribute value — a span attribute can be a primitive or an array of primitives.

T
SpanExporterKind = "otlp" | "console"

Which span exporter to use.

T
SpanKind = "internal" | "server" | "client" | "producer" | "consumer"

The kind of span. Maps to OTel SpanKind at the implementation boundary.

T
SpanProcessorKind = "simple" | "batch"

Which span processor to use.

T
SpanStatus = "ok" | "error" | "unset"

Span status — whether the span completed successfully or not.

Variables

v
TELEMETRY_SPAN_KEY: "telemetry-plugin:span"

The key used to store the active span on ctx.state.