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-specific | General | Default |
|---|---|---|
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT | OTEL_EXPORTER_OTLP_ENDPOINT | http://localhost:4318 |
OTEL_EXPORTER_OTLP_TRACES_HEADERS | OTEL_EXPORTER_OTLP_HEADERS | none |
OTEL_EXPORTER_OTLP_TRACES_COMPRESSION | OTEL_EXPORTER_OTLP_COMPRESSION | none |
OTEL_EXPORTER_OTLP_TRACES_TIMEOUT | OTEL_EXPORTER_OTLP_TIMEOUT | 10000 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.