search_traces
Query Datadog APM traces and spans by service, status, duration, or raw query to diagnose errors and performance issues.
Instructions
Search Datadog APM traces/spans with structured filters or raw query. Returns span details with service, resource, duration, and status.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End time: relative or ISO 8601 or 'now' | now |
| env | No | Filter by environment | |
| from | No | Start time: relative (15m, 1h, 1d) or ISO 8601 | 15m |
| sort | No | Sort order (timestamp ascending or descending) | -timestamp |
| limit | No | Max spans to return | |
| query | No | Raw span query (overrides structured filters). E.g. 'service:web-api @http.status_code:500' | |
| status | No | Filter by span status | |
| service | No | Filter by service name | |
| operation | No | Filter by operation/resource name | |
| minDuration | No | Minimum duration filter. E.g. '1s', '500ms' |