IT lexicon › Infra & Ops › Tail sampling

Tail sampling

Infra & Ops På svenska → Updated: 2026-11-14

Trace sampling decision made *after* a trace completes—deciding whether to store it based on its content rather than a random coin flip at entry.

Unlike head-sampling (decide at ingest) or probabilistic sampling, tail-sampling waits for the complete trace and inspects its attributes—high latency, errors, interesting behavior—before deciding if it's worth persisting. Enables capturing rare failure modes without storing mountains of routine data.

The tradeoff: traces are already distributed when the decision happens, so components must buffer their spans (or reconstruct them). Tail-sampling is typically implemented server-side, not on agents, and requires coordination across distributed collectors.

← Back to the lexicon