In this lesson · topic 7 of 7
Topic 7
Off-path spans, 100 backends, keeping slow traces
4 min read
Predict first
Predict first
Predict first
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
- Benjamin H. Sigelman, Luiz André Barroso, Mike Burrows, Pat Stephenson, Manoj Plakal, Donald Beaver, Saul Jaspan and Chandan Shanbhag, Dapper, a Large-Scale Distributed Systems Tracing Infrastructure, Google Technical Report, 2010.
- Rodrigo Fonseca, George Porter, Randy H. Katz, Scott Shenker and Ion Stoica, X-Trace: A Pervasive Network Tracing Framework, NSDI, 2007.
- Jeffrey Dean and Luiz André Barroso, The Tail at Scale, Communications of the ACM, 2013.
- Sergey Kanzhelev, Morgan McLean, Alois Reitbauer, Bogdan Drutu, Nik Molnar and Yuri Shkuro, Trace Context, W3C Recommendation, 2021.
- Sampling, OpenTelemetry documentation.