search_spans
Search distributed-tracing spans in Grail filtered by service, error status, or minimum duration. Use to pinpoint performance issues or failed requests.
Instructions
Search distributed-tracing spans in Grail via DQL ('fetch spans'). Filter by service, status, or duration.
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_spans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | No | Service name (service.name). | |
| onlyErrors | No | If true, only failed spans. | |
| minDurationMs | No | Minimum span duration in ms. | |
| from | No | DQL timeframe start expression (default 'now()-1h'). | |
| limit | No | Max rows (default 100). |