RousselTMLEARNING

Observability

Distributed tracing best practices with Jaeger

Checklist for useful tracing: OpenTelemetry instrumentation, span naming, attributes, propagation, sampling, storage and operating Jaeger.

1. Instrumenting #

Readable traces.

Rules #

  • OpenTelemetry everywhere (SDK or auto-instrumentation), never a proprietary client.
  • A stable service.name and resource attributes (service.version, deployment.environment).
  • Low-cardinality span names (GET /commandes/{id}, not the full URL).
  • Business attributes useful for diagnosis, without personal data.
  • W3C propagation on all services, including message queues.

2. Operating #

Cost and reliability.

Settings #

  • Tail sampling that keeps errors and slow traces.
  • 7 to 14 days of retention, daily indices.
  • Kafka as a buffer beyond a few thousand spans per second.
  • Alerts on refused or unexported spans.
  • Links from logs (trace_id) and metrics (exemplars) to Jaeger.

Reference diagram and quick check #

Checklist.

Checklist #

  1. OpenTelemetry SDK and W3C propagation
  2. Jaeger v2 with persistent storage
  3. Sampling defined
  4. SPM enabled
  5. Retention and index cleanup
  6. Collector monitoring

Related articles

Distributed tracing with Jaeger: concepts and architecture

The concepts of distributed tracing (trace, span, context, propagation) and Jaeger: its history, its v2 archi…

Installing Jaeger v2: all-in-one, configuration and storage

Run Jaeger v2 as all-in-one, understand its configuration file (jaeger_storage and jaeger_query extensions, O…

Instrumenting applications for Jaeger with OpenTelemetry

Send traces to Jaeger with OpenTelemetry: auto-instrumentation (Java, Python, Node.js), SDK and manual spans,…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!