tempo_search_traces
Search traces using TraceQL queries with flexible formatting, tag-based filters, and duration ranges, defaulting to the last 7 days. Returns distributed tracing data for troubleshooting and analysis.
Instructions
Search traces using TraceQL query language. Automatically handles various query syntax formats. The query parser will normalize your query to work with Tempo. Default time range: last 7 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End time in RFC3339 format (e.g., "2025-10-06T23:59:59Z") or Unix timestamp. Defaults to now if not provided. | |
| tags | No | Legacy tags query format (e.g., "service.name=app-demo http.status_code=200") | |
| limit | No | Maximum number of traces to return (default: 20, max: 1000) | |
| query | No | TraceQL query. Supports multiple formats: - Service: {resource.service.name="app-demo"} or {.service.name="app-demo"} - Span name: {span.name="POST /api/endpoint"} - HTTP status: {span.http.status_code=200} - Duration: {duration>100ms} - Combined: {resource.service.name="app-demo" && span.http.status_code=200} The parser will automatically normalize attribute paths. | |
| start | No | Start time in RFC3339 format (e.g., "2025-09-29T00:00:00Z") or Unix timestamp. Defaults to 7 days ago if not provided. | |
| maxDuration | No | Maximum duration filter (e.g., "5s", "10s", "1m") | |
| minDuration | No | Minimum duration filter (e.g., "100ms", "1s", "500ms") |