Statistical Aspects of Distributed Tracing
summary
Covers concrete sampling choices for distributed tracing: head-based sampling (e.g. 1% uniform) versus tail-based sampling deferred until trace completion, a budget example keeping 30 traces/min split 15/10/5 across endpoints (get 1,000/min median 300ms, create 100/min 400ms, update 10/min 500ms), and concrete sketches: t-digest, exponentially decaying reservoir, moment-based quantile sketch. Shows biased retention for rare or slow traces uncovers previously unseen dependencies, preserves percentiles when weights are recorded, and measures fidelity with KL divergence.
AI-written summary · about
chapters (20)
- 0:00Introduction to talk
- 1:09What distributed tracing shows
- 4:23Coherent sampling explained
- 5:27Head-based sampling basics
- 7:34Limitations of uniform sampling
- 9:03Tail-based sampling approach
- 10:50Budget allocation strategies
- 12:57Forecasting endpoint volume
- 15:09Dependency graphs from traces
- 16:12Percentile data structures needed
- 18:38Bias sampling vs uniform
- 20:04Percentiles vs z-scores
- 22:15Exponentially decaying reservoir
- 22:58T-digest for dynamic histograms
- 23:41Moment-based quantile sketch
- 24:43Aligning summary statistics
- 25:45Weighted sampling evaluation
- 26:52Relative entropy divergence
- 29:19Alternative clustering approach
- 30:19Summary and references
