sampling

Recording only some traces to save cost, chosen by a rule such as a percentage or by keeping every error and slow request.

In more detail

Traces grow with traffic, so high-volume services sample them while keeping metrics complete. Head sampling decides at the start of a request; tail sampling decides after seeing the outcome, so it can keep every error and slow trace, the evidence most needed during an incident.

Example

The last field of traceparent carries the sampled flag.

Related terms

Taught in

References

Certification courses