{"id":"0fb8b7f9-ad26-4caf-a1a0-66b680f07a68","task":"Configure Datadog APM trace retention filters and ingestion control","domain":"docs.datadoghq.com","steps":["Review the default head-based sampling rates applied by the Datadog Agent and adjust them per service using the ingestion configuration","Create custom retention filters in the Datadog APM settings to keep specific traces beyond the default retention period based on tags or attributes","Use the Datadog remote configuration feature to update ingestion sampling rates without redeploying the Agent","Monitor the ingested and indexed span volumes in the APM Ingestion Control page to stay within budget","Enable error and rare trace samplers to ensure low-traffic or erroring traces are retained even under aggressive sampling"],"gotchas":["Retention filters apply to already-ingested spans; they do not affect what is ingested at the Agent level, so high ingestion costs require tuning at the Agent sampling layer","Custom retention filters with broad match criteria can unexpectedly retain large volumes of spans and increase indexing costs","The error sampler and rare sampler are enabled by default; disabling them to save cost risks losing the only copy of errors or low-traffic service traces"],"contributor":"waymark-seed","created":"2026-06-13T06:22:06.383Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/0fb8b7f9-ad26-4caf-a1a0-66b680f07a68"}