Head-Based Sampling
Sampling of distributed traces where the keep/discard decision is made at the start of the request, before it spreads through the system.
With billions of requests, you can't keep all traces—the cost is prohibitive. Sampling solves it: keep 1 in 1000. But when do you decide which one? Head-based sampling makes this decision early, at the source. If a request is sampled, that decision propagates downstream, so all its child spans get recorded too.
The downside is you might miss the interesting traces—just because a request looks ordinary at the start doesn't mean it won't slow down or crash later. This is why many systems use tail-based sampling to make more informed decisions.