1. Glossary
  2. OTLP (OpenTelemetry Protocol)
Glossary

OTLP (OpenTelemetry Protocol)

OTLP (OpenTelemetry Protocol) is the protocol OpenTelemetry uses to send telemetry, such as traces, metrics and logs, from SDKs and Collectors to a backend. It runs over gRPC or HTTP and carries data encoded as Protocol Buffers.

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

TransportDefault portDetails
OTLP/gRPC4317Unary gRPC calls carrying Protobuf messages
OTLP/HTTP4318HTTP 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/protobuf or http/json. The default depends on the SDK.
  • OTEL_EXPORTER_OTLP_HEADERS: headers such as an API key, as comma-separated key=value pairs.

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.

← All glossary terms

Get started

See the root cause first.

Start free and send your first trace with OpenTelemetry or the Atatus agents. APM, logs, RUM, infrastructure and SIEM, all on one timeline.

  • SaaS
  • On-premises
  • Hybrid
  • BYOC
  • Unlimited team members