search-spans
Search APM spans and traces to find slow requests, errors, or latency issues using queries like 'service:web status:error @duration:>1s'. Returns individual spans with trace IDs for further investigation.
Instructions
Search APM spans/traces. Use for 'find slow requests', 'show errors in payment service', or investigating latency. Query syntax: 'service:web status:error @duration:>1s'. Returns individual spans with trace IDs. Use get-trace for full trace context.
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 |
|---|---|---|---|
| filter | No | ||
| sort | No | Sort order ('timestamp' or '-timestamp') | |
| page | No | ||
| limit | No | Maximum spans to return |