Use Datadog's ingestion_reason tag to understand why APM traces were sampled and retained

domain: docs.datadoghq.com · 6 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Confirm the Datadog Agent and tracing library versions in use support the trace ingestion mechanisms you plan to inspect
  2. Query traces in the APM UI or via the API and group/filter by the `ingestion_reason` tag to see values like `auto`, `rule`, `error`, `rare`, or `manual`
  3. Cross-reference `ingestion_reason: rule` traces against your configured `DD_TRACE_SAMPLING_RULES` to confirm sampling rules are firing as intended
  4. Check the Ingestion Controls UI to review current ingestion mechanisms and their volume impact
  5. Adjust `DD_APM_TARGET_TPS` and/or `DD_TRACE_RATE_LIMIT` if you need to change baseline throughput before rules and priority sampling apply
  6. Monitor `datadog.estimated_usage.apm.ingested_spans`/`ingested_bytes` tagged by `ingestion_reason` to attribute ingestion cost to specific mechanisms

Known gotchas

Related routes

Configure Datadog APM trace retention filters and ingestion control
docs.datadoghq.com · 5 steps · unrated
Configure Datadog APM trace ingestion sampling rules and retention filters to control cost without losing critical traces
docs.datadoghq.com · 5 steps · unrated
Ingest Datadog APM traces via the OTLP ingest API and correlate them with Datadog Infrastructure metrics using unified service tagging
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