Observability · OpenTelemetry
OTLP Protocol
Cheat sheet · https://pcornel.dk/topic.php?topic=6215
Answer
OTLP is the OpenTelemetry protocol for metrics, logs and traces over gRPC (port 4317) or HTTP/protobuf (port 4318, paths /v1/traces, /v1/metrics, /v1/logs).
Remember
Match protocol and port: gRPC to 4317, HTTP to 4318 with path. Use TLS and auth headers across networks. Errors often show only in SDK debug logs.
First checks
nc -vz collector 4317— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Commands
curl -i http://collector:4318/v1/traces -H 'Content-Type: application/json' -d '{}'
Verify in this order
SDK → OTLP gRPC/HTTP → receiver → pipeline
Where it usually breaks
Proxies that do not support HTTP/2 break gRPC.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6215