Get Trace
get_traceRetrieve trace data from Mackerel by trace ID to analyze performance bottlenecks, debug latency, and investigate error propagation across microservices.
Instructions
Retrieve trace data by trace ID from Mackerel for distributed tracing analysis.
š USE THIS TOOL WHEN USERS:
Analyze performance bottlenecks in distributed systems
Investigate error propagation across microservices
Understand request flow and service dependencies
Debug latency issues and identify slow operations
Generate documentation of system architecture from trace data
Focus on errors only
get_trace(traceId="abc123def456", errorSpansOnly=true)Filter spans with duration over 100ms
get_trace(traceId="abc123def456", duration=100)Detailed analysis with attributes
get_trace(traceId="abc123def456", includeAttributes=true, limit=50)Minimal view for overview
get_trace(traceId="abc123def456", includeEvents=false, limit=10)Pagination through large traces
get_trace(traceId="abc123def456", limit=20, offset=0) # First page
get_trace(traceId="abc123def456", limit=20, offset=20) # Second pageCombined filtering and pagination
get_trace(traceId="abc123def456", errorSpansOnly=true, limit=10, offset=0)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of spans to return per page (default: 20, max: 100) | |
| offset | No | Number of spans to skip (default: 0) | |
| traceId | Yes | The ID of the trace to retrieve | |
| duration | No | Only return spans with duration (in milliseconds) equal to or greater than this value. Useful for identifying bottlenecks | |
| includeEvents | No | Whether to include span events. Default is true as events contain important error information | |
| errorSpansOnly | No | If true, only return spans that have errors or status code indicating failure | |
| includeAttributes | No | Whether to include span attributes. Default is false to reduce response size |