Lexicon

Sampling

Sampling keeps only a fraction of telemetry to control cost. How head and tail sampling work, and why the trace you need most is the one sampling dropped.

Definition

Sampling is the practice of keeping only a subset of telemetry, usually traces, so that volume and cost stay manageable. A sampler decides which data survives, either when a request begins or after it completes, and everything else is discarded before it ever reaches storage.

What it means in observability

Sampling exists because of economics, not engineering preference. Nobody wants less data about their systems; teams sample because full fidelity telemetry at traditional observability prices is unaffordable, and the AI era made it worse as volumes compound faster than budgets. So sampling rates climb, quietly, one cost review at a time. Each increase looks reasonable in isolation. Collectively they shrink coverage until observability describes a thinning statistical sketch of production rather than production itself.

How it works in practice

Head sampling decides at the start of a trace, typically keeping a fixed percentage, which is cheap and simple but blind: it cannot know whether the request it is discarding will turn out to be the interesting one. Tail sampling waits until a trace completes and applies policies, keeping errors and outliers at higher rates, which is smarter but operationally heavier. Logs get sampled and dropped by level or volume too, while metrics, being pre-aggregated, mostly escape the knife.

Where it gets hard

Sampling fails silently, and that is the heart of the problem. The customer escalation lands, you search for the trace, and it does not exist, because a one percent sampler discarded it along with the other ninety nine. Rare failures are precisely what samplers are statistically built to throw away. Worse, sampled data quietly distorts everything computed from it: error rates, percentiles, SLO measurements, and the AI systems now being pointed at telemetry, all reasoning over a partial record while presenting conclusions as though it were whole.

Where Tsuga fits

Tsuga's flat per GB pricing inside your own cloud account changes the equation that forces sampling in the first place. When keeping everything is affordable, sampling becomes a deliberate engineering choice rather than a survival tactic, and the trace you need is there when you go looking.

Related terms