What is OTLP, and what are its default ports?
BeginnerConceptTracing & OpenTelemetry
Answer
OTLP (OpenTelemetry Protocol) is the native protocol for traces, metrics and logs, encoded as Protobuf.
| Transport | Default port | Path |
|---|---|---|
| gRPC | 4317 |
n/a |
| HTTP/protobuf (or JSON) | 4318 |
/v1/traces, /v1/metrics, /v1/logs |
export OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
We use gRPC inside the cluster for efficiency and HTTP when going through proxies or load balancers that do not handle gRPC well. Most backends (Tempo, Jaeger v2, Prometheus' OTLP receiver, Mimir, Loki, Datadog, Elastic) now accept OTLP directly.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhat is OpenTelemetry and what are its main parts?Beginner