Before OTLP, most monitoring tools had their own agent and wire format, so changing tools meant changing instrumentation. Because any OpenTelemetry SDK or Collector can send OTLP to any backend that accepts it, moving your data to a new backend becomes a configuration change rather than a code change.
How OTLP works
| Transport | Default port | Details |
|---|---|---|
| OTLP/gRPC | 4317 | Unary gRPC calls carrying Protobuf messages |
| OTLP/HTTP | 4318 | HTTP POST to /v1/traces, /v1/metrics or /v1/logs, with a binary Protobuf or JSON body |
Servers must accept gzip compression. When an export fails, the server says whether the error can be retried, so clients retry only temporary failures. A response can also report a partial success, when the server rejected some of the items.
Signals and stability
The OTLP specification is stable for traces, metrics and logs. Profiles, the newest signal, is still in development. Both transports carry the same Protobuf messages.
Configuring an OTLP exporter
OpenTelemetry SDKs read standard environment variables, so the same settings work across languages:
OTEL_EXPORTER_OTLP_ENDPOINT: the base URL of the backend or Collector.OTEL_EXPORTER_OTLP_PROTOCOL:grpc,http/protobuforhttp/json. The default depends on the SDK.OTEL_EXPORTER_OTLP_HEADERS: headers such as an API key, as comma-separatedkey=valuepairs.
The OpenTelemetry Collector receives OTLP from applications and can also take in other formats, such as Prometheus, Jaeger or Zipkin, and send them on as OTLP.
OTLP in Atatus
Atatus accepts OTLP traces, metrics and logs over HTTP at https://otel-rx.atatus.com, with your Atatus API key in the api-key header. Send it straight from your SDKs with OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf, or through a Collector with the otlphttp exporter. See OpenTelemetry in Atatus and the OpenTelemetry guide.