docker exec otel-collector printenv | egrep 'OTEL_TRACES_SAMPLER|OTEL_TRACES_SAMPLER_ARG'Tune distributed trace sampling without going blind when the incident lands
How to audit SDK head sampling, move decisions into the Collector, and keep slow and error traces without blowing up cost.
A practical guide to spotting sampling bias, applying useful tail sampling, and validating that the traces you care about still survive the full path.
Created: April 28, 2026
Published: April 28, 2026
Docker
Useful when the collector runs in a container and the fastest diagnosis path is to inspect the process locally.
dockerAccess to the collector containercurl or wget inside the container
docker exec otel-collector sh -c "wget -qO- http://localhost:8888/metrics | egrep 'tail_sampling|queue_size|accepted_spans'"Content locked
This guide requires both steps before full content is available.
- ○Click “Like” on this guide.
- ○Share on WhatsApp, X, LinkedIn, or copy the link.
Access is automatically unlocked as soon as both steps are completed.