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.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new OTLPSpanExporter(
config):OTLPSpanExporter
Defined in: src/observability/tracing.ts:291
Parameters
Section titled “Parameters”config
Section titled “config”endpoint
Section titled “endpoint”string
headers?
Section titled “headers?”Record<string, string>
serviceName?
Section titled “serviceName?”string
serviceVersion?
Section titled “serviceVersion?”string
timeoutMs?
Section titled “timeoutMs?”number
Returns
Section titled “Returns”OTLPSpanExporter
Methods
Section titled “Methods”export()
Section titled “export()”export(
spans):Promise<void>
Defined in: src/observability/tracing.ts:305
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<void>