OpenTelemetry
Cheat sheet · https://pcornel.dk/topic.php?topic=6103
Answer
OpenTelemetry (OTel) is a vendor-neutral standard of APIs, SDKs, semantic conventions, the OTLP protocol and the Collector for producing and shipping metrics, logs and traces.
Remember
Set service.name and resource attributes on every service. Send to a local Collector rather than directly to vendors. Follow semantic conventions for attribute names.
First checks
otelcol --config config.yaml validate— 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
Verify in this order
SDK/auto-instrumentation → OTLP → Collector (receivers, processors, exporters) → backends
Where it usually breaks
Typical failures are endpoint/protocol mismatches, TLS/auth errors, processors dropping/renaming fields, exporter backpressure, excessive batching memory, duplicate agent+SDK instrumentation and believing successful export means the backend indexed the data.
OpenTelemetry verification boundary matrix
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | API/SDK responsibility | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Collector architecture / OTLP | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Receivers | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Processors | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6103