Skip to content

OTLPSpanExporter

Defined in: src/observability/tracing.ts:284

OTLP/HTTP JSON span exporter.

Ships spans to an OpenTelemetry Collector (or compatible endpoint) using fetch() with the OTLP JSON encoding. Designed for edge runtimes - no gRPC, no protobuf, no Node.js dependencies.

Export calls should be dispatched via waitUntil() so they do not block the response path.

new OTLPSpanExporter(config): OTLPSpanExporter

Defined in: src/observability/tracing.ts:291

string

Record<string, string>

string

string

number

OTLPSpanExporter

export(spans): Promise<void>

Defined in: src/observability/tracing.ts:305

ReadableSpan[]

Promise<void>

SpanExporter.export