Curriculum · Module 06, Observability
Distributed tracing
Follow one request across many services, find the critical path, see why fan-out makes the tail common, and decide which traces to keep.
What each topic covers
- Metrics say the service is slow. Only a trace says which call, in which service, on which request.
- How a trace identifier travels with a request, how spans nest, and how to find the calls that set the latency.
- Build a call tree, find the critical path, watch the tail grow with fan-out, and compare head and tail samplers on the same traffic.
- Fan-out turns rare slowness into the common case, the slowest span can be off the path, and a tail sampler costs buffering.
- A message carries trace context in its headers. Single messages can have a parent, batches need links, and a stripped header splits the trace.
- Size the buffer from traffic and decision wait, route every span of a trace to one place, and see why an incident can multiply storage sixteen times.
- Three quick checks on the critical path, fan-out arithmetic and sampling, with the sources behind the lesson.
Topics
- 1Why one request needs a trace4 min
- 2Spans, context and the critical path8 min
- 3Reshape a service tree, then sample it8 min
- 4When one slow call in a hundred reaches most requests6 min
- 5Traces that cross a queue7 min
- 6What a tail sampler costs to run7 min
- 7Off-path spans, 100 backends, keeping slow traces4 min
Practise this lesson
13 interview questions on distributed tracing, with worked answers and sources.
Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms