tempo_get_trace_spans
Retrieves all spans from a specific trace, with optional filters for service, span name, duration, attributes, or error status to narrow down results.
Instructions
Get all spans from a specific trace with optional filtering by service name, span name, duration, attributes, or error status
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"traceId": "<traceId>"
},
"name": "tempo_get_trace_spans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traceId | Yes | The trace ID | |
| hasError | No | Filter spans with errors only | |
| spanName | No | Filter by span name (partial match) | |
| attributes | No | Filter by span attributes (e.g., {"http.method": "POST", "http.status_code": "500"}) | |
| maxDuration | No | Maximum span duration in milliseconds | |
| minDuration | No | Minimum span duration in milliseconds | |
| serviceName | No | Filter by service name |