Builds an OTLP span exporter from a resolved tracing config — a SpanExporterFactory for
services that ingest OTLP (initTracingWith(config, createOtlpExporter, …)):
http/protobuf: @opentelemetry/exporter-trace-otlp-proto (real protobuf). The endpoint goes
through httpTracesEndpoint; headers are HTTP headers; tls applies to the HTTP agent.
grpc: @opentelemetry/exporter-trace-otlp-grpc; headers become gRPC metadata (names
lower-cased); credentials per otlpGrpcCredentials.
native: ConfigError — the service package provides its own exporter.
Compression follows compression, the export deadline is batch.exportTimeoutMs, and the
User-Agent starts with OTLP_USER_AGENT. Without an endpoint the standard
OTEL_EXPORTER_OTLP_* variables and the OpenTelemetry defaults apply.
Builds an OTLP span exporter from a resolved tracing config — a
SpanExporterFactoryfor services that ingest OTLP (initTracingWith(config, createOtlpExporter, …)):http/protobuf:@opentelemetry/exporter-trace-otlp-proto(real protobuf). The endpoint goes through httpTracesEndpoint; headers are HTTP headers;tlsapplies to the HTTP agent.grpc:@opentelemetry/exporter-trace-otlp-grpc; headers become gRPC metadata (names lower-cased); credentials per otlpGrpcCredentials.native:ConfigError— the service package provides its own exporter.Compression follows
compression, the export deadline isbatch.exportTimeoutMs, and the User-Agent starts with OTLP_USER_AGENT. Without an endpoint the standardOTEL_EXPORTER_OTLP_*variables and the OpenTelemetry defaults apply.