BugSnag: Get Trace
bugsnag_get_traceRetrieve all spans within a trace to debug slow requests and identify performance bottlenecks in distributed systems.
Instructions
Get all spans within a specific trace
Toolset: Performance
Parameters:
projectId (string): Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools.
traceId (string) required: Trace ID
from (string) required: Start time (ISO 8601 format)
to (string) required: End time (ISO 8601 format)
targetSpanId (string): Optional target span ID to focus on
perPage (number): How many results to return per page. (default: 30)
nextUrl (string): URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually.
Use Cases: 1. Debug slow requests by viewing all operations in the trace 2. Understand the flow of a request through the system 3. Identify bottlenecks in distributed systems
Examples:
Get all spans for a trace
{
"traceId": "abc123",
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T23:59:59Z"
}Expected Output: Array of all spans in the trace with timing and hierarchy
Get spans for a trace with pagination and target span
{
"traceId": "def456",
"from": "2024-01-01T00:00:00Z",
"to": "2024-01-01T23:59:59Z",
"targetSpanId": "span-789",
"perPage": 50
}Expected Output: Array of up to 50 spans focused around the target span
Hints: 1. Traces show the complete execution path of a request 2. Use from/to parameters to narrow the time window 3. targetSpanId can be used to focus on a specific span in the trace
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | End time (ISO 8601 format) | |
| from | Yes | Start time (ISO 8601 format) | |
| nextUrl | No | URL for retrieving the next page of results. Use the value in the previous response to get the next page when more results are available. Only values provided in the output from this tool can be used. Do not attempt to construct it manually. | |
| perPage | No | How many results to return per page. | |
| traceId | Yes | Trace ID | |
| projectId | No | Unique identifier of the project. This is optional if a current project is set and is used to set the current project for BugSnag tools. | |
| targetSpanId | No | Optional target span ID to focus on |