Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. Why one request needs a trace
  2. 2. Spans, context and the critical path
  3. 3. Reshape a service tree, then sample it
  4. 4. When one slow call in a hundred reaches most requests
  5. 5. Traces that cross a queue
  6. 6. What a tail sampler costs to run
  7. 7. Off-path spans, 100 backends, keeping slow traces

Topic 7

Off-path spans, 100 backends, keeping slow traces

4 min read

Predict first

A trace shows one call with the longest self time in the whole request. Why might making it ten times faster not speed up the request?

Predict first

Each of 100 parallel calls is slow one time in a hundred, independently. About how often does a request meet at least one slow call?

Predict first

You want to be sure every slow request gets a stored trace. Which sampling approach can do that, and what does it cost?

Take away

  • A trace is a tree of spans joined by a shared identifier that every service forwards. A missing hop breaks the tree.
  • The critical path decides the latency. The slowest span is not always on it, so rank by time on the path.
  • When a request fans out, rare slowness in one call becomes common slowness in the request.
  • A head sampler cannot choose slow traces. A tail sampler can, and pays in buffering. Neither keeps a fair sample once it is used to pick traces.

Sources

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms