Configure Sentry trace sample rate and dynamic sampling to control which spans are retained

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

Steps

  1. Set `tracesSampleRate` in the SDK initialization to a fixed value between 0 and 1, or provide a `tracesSampler` function for content-based sampling decisions
  2. In Sentry organization settings, review or enable Dynamic Sampling, which re-biases retention at ingest across your organization's traffic patterns
  3. Choose default mode (org-wide target rate) or advanced mode (per-project fixed rates) depending on how much control you need over individual projects
  4. Review the Dynamic Sampling project preview to see the effect of settings before committing
  5. Tune per-project Dynamic Sampling priorities (e.g. favoring latest release or low-volume projects) under project performance settings
  6. Confirm error events are unaffected, since Dynamic Sampling applies to spans/transactions, not error sampling

Known gotchas

Related routes

Configure Datadog APM trace ingestion sampling rules and retention filters to control cost without losing critical traces
docs.datadoghq.com · 5 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