fetch_error_traces
Retrieve structured OpenTelemetry error traces for a microservice, including trace IDs, span IDs, HTTP status codes, error messages, and stack traces to diagnose incidents.
Instructions
Fetch structured OpenTelemetry error traces including traceId, spanId, HTTP status codes, error messages, and stack traces.
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": {
"serviceName": "<serviceName>"
},
"name": "fetch_error_traces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of trace spans to return (default 10) | |
| serviceName | Yes | The target microservice name (e.g. "order-service", "payment-gateway") | |
| minStatusCode | No | Minimum HTTP status code threshold (e.g. 500 for server errors) | |
| timeframeMinutes | No | Lookback timeframe in minutes (default 30) |