What Is Tail-Based Sampling?
Tail-based sampling buffers the spans of a trace until the request finishes, then evaluates the whole trace to decide whether to store it. Because the outcome is known, it can preferentially keep traces that erred or ran slowly and discard ordinary fast ones. The trade-off is the memory and coordination needed to hold spans until completion.
Why it matters
The most useful traces to keep are the problematic ones, but you only know which those are at the end. Tail-based sampling retains them on purpose rather than relying on luck.
Related guides
What Is Head-Based Sampling?Head-based sampling decides whether to record a trace at its start, before the outcome is known, applying a f…
What Is a Collector Pipeline?A collector pipeline is the chain of receivers, processors, and exporters that telemetry flows through inside…
What Is Trace Context Propagation?Trace context propagation passes trace and span identifiers across service boundaries, usually in request hea…