Pcornel
Observability

OpenTelemetry

Cheat sheet · https://pcornel.dk/topic.php?topic=6103

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

BoundaryInspectHealthy interpretationDo not infer
IntentAPI/SDK responsibilityIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeCollector architecture / OTLPOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateReceiversIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeProcessorsThe original bounded check succeeds in the same time windowProduction 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

Confirmation

Confirm action

Continue?