Ankit Patel
WritingPapersLabsAboutContact
Paper Reviews··Updated 2025-11·2 min read·202 views

Which Request Can Google Dapper Explain?

Google Dapper · Sigelman et al., Google Technical Report 2010

Uniform trace sampling shows where latency goes across a fleet while missing almost every individual request a customer asks about.

Sigelman and colleagues put that tension right at the center of Google's Dapper paper, and teams still trip over it whenever observability coverage gets reduced to a single sampling rate.

In Dapper, an incoming request receives a globally unique trace ID propagated across RPCs and asynchronous control queues. Each service records spans with timestamps and parent links so engineers can reconstruct causal execution paths across dozens of binaries.

Request trace: web request 0–80 ms, search 6–66 ms, storage 12–62 ms, and ads 68–77 ms sharing a single trace ID.
Request trace: web request 0–80 ms, search 6–66 ms, storage 12–62 ms, and ads 68–77 ms sharing a single trace ID.

Looking at nested spans side by side shows why isolated service dashboards mislead during incidents. When an 80-millisecond web request spends 60 milliseconds inside search, and 50 of those milliseconds sit inside a child storage read, summing per-service averages double-counts overlapping work.

Dapper reached ubiquitous deployment inside Google by instrumenting shared RPC and threading libraries rather than asking application teams to annotate handlers manually. Keeping overhead invisible required aggressive sampling. On web search, capturing 100% of traces added 16.3% average latency overhead and 1.5% throughput loss, whereas sampling 1 in 1,024 requests reduced production latency overhead to statistical noise.

On an endpoint serving one million requests an hour, retaining one trace in a thousand still yields roughly 1,000 complete traces every sixty minutes. For spotting a chatty serialization loop, an unbatched database fan-out, or a p99 regression introduced in Tuesday's deploy, a thousand traces an hour gives plenty of signal without taxing customer latency or collector storage.

Capturing every healthy read path just in case burns infrastructure budget without sharpening diagnosis.

Auditing one customer failure

Flip the question to a support escalation naming one failed checkout or dropped webhook. Under independent 1-in-1,000 head sampling, there is a 99.9% chance that specific trace was discarded at ingress, regardless of how many billions of requests the cluster serves overall. Even higher sampling rates leave gaps whenever collector buffers drop packets or short retention windows expire.

High-consequence mutations need two distinct telemetry tiers rather than one compromised percentage. Keep low-rate head or tail-based performance tracing for latency engineering, and write compact, durable audit records at 100% capture for state-changing operations that customers or operators will ask you to explain by ID.

Dapper's lasting lesson for me is that sampling policy belongs in the architecture review. Decide which questions your team has to answer after an incident before picking the fraction of evidence you throw away.

Continue in Paper Reviews