How do you combine head and tail sampling in a high-traffic system?

AdvancedProductionTracing & Sampling
Answer

Use a generous head sample (say 25%) in SDKs to cut network and collector load, then tail sampling in collectors to keep all errors and slow traces from that 25% and only 5% of normal ones. Errors that fall in the 75% head-dropped part are lost, so for critical paths keep head sampling at 100% and rely on tail sampling only. Record the effective sample rate as an attribute so span metrics can be scaled correctly.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & Sampling