Sampling strategies

2025-02-22

Tracing every request in production is expensive. Head-based sampling decides at trace start based on a rate (e.g. 1%). Tail-based sampling buffers spans and decides after the trace completes — useful for capturing all errors even at low rates.

EchoTrail supports both strategies with a single config line. Tail-based sampling is more expensive but catches edge cases that head sampling misses.

← All posts