Sampling (Tracing) - CI/CD Glossary Definition
Sampling records only a portion of traces to limit cost, and can decide up front (head sampling) or after seeing the full trace (tail sampling).
Sampling keeps only a fraction of traces to control cost and volume while preserving representative data. It can be decided at the start of a request (head) or after it completes (tail).
Head vs tail
Head sampling decides at the trace's start, so it is cheap but blind to outcome. Tail sampling waits until the trace finishes, letting you keep all errors and slow requests at higher storage cost.
Related guides
Trace - CI/CD Glossary DefinitionTrace: A trace is the complete record of one request or workflow as it flows through a system, assembled from…
Tracing - CI/CD Glossary DefinitionTracing: Tracing follows a single request or operation as it moves across services and components, recording…
Span - CI/CD Glossary DefinitionSpan: A span is the basic unit of a trace: a single named, timed operation with a start, an end, and attribut…