Skip to content

How to build observability

Start with OpenTelemetry, instrument at the boundary, sample intelligently, correlate signals by trace ID.

Observability that works

  1. Instrument at the boundary

    HTTP handlers, DB queries, external calls. Not every internal function.

  2. Use OpenTelemetry

    Vendor-neutral. Traces, metrics, logs in one SDK. Exports to any backend.

  3. Correlate by trace ID

    Logs without trace ID are noise. Every log line carries the span context.

  4. Sample intelligently

    100% of errors, 1-10% of successes. Tail sampling if the backend supports it.