Read Trace
readTraceRetrieve a trace's spans in tree order with service, timing, status, first exception and attributes, limited to the workspace's apps. Use it to debug distributed requests.
Instructions
Returns the spans the workspace's apps sent in a trace, in tree order, with each span's service, timing, status, first exception and attributes. Spans from outside the workspace are left out. Answers 404 when no span of the trace belongs to the workspace, it was sampled out, or it is older than 7 days.
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": {
"workspaceSlug": "<workspaceSlug>",
"traceId": "<traceId>"
},
"name": "readTrace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| around | No | Unix milliseconds near the trace, such as a log line's time, which narrows the lookup | |
| traceId | Yes | Trace id, up to 32 hex characters | |
| workspaceSlug | Yes |