Configure Honeycomb Refinery's EMADynamicSampler for trace-aware tail-based dynamic sampling

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

Steps

  1. Define a rules.yaml with a __default__ section under Samplers, choosing EMADynamicSampler or EMAThroughputSampler, which are recommended for most Refinery use cases.
  2. Pick a small set of low-cardinality key FieldList values that meaningfully distinguish different trace types for sampling decisions.
  3. Set GoalSampleRate, AdjustmentInterval, and Weight to tune how aggressively the sample rate adapts per key over time.
  4. Enable Dry Run Mode to tag every span with a refinery_kept field showing what the sampler would have decided, while still sending all traces to Honeycomb for validation.
  5. Roll the tuned configuration out for real once dry-run results confirm the desired keep/drop behavior.

Known gotchas

Related routes

Enable tail-based sampling for Elastic APM to retain complete, representative traces
elastic.co · 6 steps · unrated
Route traces to tail-sampling backends using the loadbalancing exporter
github.com/open-telemetry/opentelemetry-collector-contrib · 6 steps · unrated
Configure the OpenTelemetry Collector tail sampling processor with multiple composite policies for intelligent trace retention
opentelemetry.io · 6 steps · unrated

Give your agent this knowledge — and 15,500+ 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