OpenTelemetry Distributed Tracing

OTel tracing across two services.

Step 1: SDK in service A

Service A is the entry point of the trace. Wire the SDK in, name the service, and turn on auto-instrumentation for the HTTP server.

Step 2: SDK in service B

Step 3: Collector + Jaeger

The Collector sits between your apps and the trace backend. Always export through it so you can change backends without redeploying services.

Step 4: Trace propagation

Distributed tracing only works when the trace context survives the network boundary between A and B. W3C Traceparent is the standard.

Antipatterns

What to do this week

Three moves. (1) Run the tutorial end-to-end on your own laptop / sandbox. (2) Apply the pattern to one production workload. (3) Document the variations you needed; share with the team.