Configure OTel Collector tail-based sampling with composite policies

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add the tailsampling processor to the Collector configuration and connect it after the receiver in the traces pipeline
  2. Define policies such as latency thresholds, status-code error sampling, and probabilistic sampling as named policy blocks
  3. Combine policies with the and or composite policy type to create nuanced sampling decisions
  4. Set the decision_wait duration long enough to receive all spans for a trace before making the sampling decision
  5. Deploy the Collector as a stateful gateway tier so all spans for a given trace arrive at the same Collector instance

Known gotchas

Related routes

Configure a composite AND policy in the OpenTelemetry Collector tail-sampling processor
github.com/open-telemetry/opentelemetry-collector-contrib · 5 steps · unrated
Configure the OpenTelemetry Collector tail sampling processor with multiple composite policies for intelligent trace retention
opentelemetry.io · 6 steps · unrated
Configure Honeycomb Refinery's EMADynamicSampler for trace-aware tail-based dynamic sampling
docs.honeycomb.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans