What problem does it solve? Controlling which spans get indexed and generating custom metrics from distributed traces in Datadog APM requires navigating complex APIs, query syntax, and permission scopes, which is error-prone when done manually. ## Core Features & Use Cases - Retention Filter Management: List, create, update, delete, and reorder span retention filters with configurable span and trace sampling rates. - Span-Based Metrics: Create count or distribution metrics from spans with group-by tags and optional percentile calculations. - Query Syntax Guidance: Apply Datadog span search syntax for precise filtering by service, environment, status, duration, and custom attributes. - Use Case: You want to retain all production error traces while sampling staging traffic at 10%, and create a p95 latency metric grouped by endpoint. This Skill generates the exact pup CLI commands with correct flags and permissions. ## Quick Start Ask the agent to create a retention filter that keeps all production error spans at a 100% sample rate.