Otel.OTLP.Trace.SpanExporter.HTTP (otel v0.2.0)

Copy Markdown View Source

OTLP HTTP Exporter for traces.

Exports spans as binary protobuf over HTTP POST to an OTLP endpoint. Implements the SpanExporter behaviour.

Default endpoint: http://localhost:4318/v1/traces

Environment Variables

Configuration priority: signal-specific env > general env > code config > defaults.

Signal-specificGeneralDefault
OTEL_EXPORTER_OTLP_TRACES_ENDPOINTOTEL_EXPORTER_OTLP_ENDPOINThttp://localhost:4318
OTEL_EXPORTER_OTLP_TRACES_HEADERSOTEL_EXPORTER_OTLP_HEADERSnone
OTEL_EXPORTER_OTLP_TRACES_COMPRESSIONOTEL_EXPORTER_OTLP_COMPRESSIONnone
OTEL_EXPORTER_OTLP_TRACES_TIMEOUTOTEL_EXPORTER_OTLP_TIMEOUT10000 ms

SSL/TLS

For HTTPS endpoints, SSL certificate verification is enabled by default using system CA certificates (:public_key.cacerts_get/0).

Custom SSL options can be provided via the :ssl_options config key.

Retry

Transient errors are retried with exponential backoff and jitter per protocol/exporter.md §Retry L181-L183. Retry behavior is delegated to Otel.OTLP.HTTP.Retry; defaults match the Java OTLP SDK (5 attempts, 1s → 5s capped, 1.5x multiplier, ±20% jitter). Override via the :retry_opts config key.