Get Trace
get_traceReturn the spans of a single trace (up to 10000), plus a trace summary; or, with spanId and path, read one long value of one span.
Prefer correlate when investigating a trace — it returns the same spans plus correlated logs and metric exemplars in one call. Use get_trace only when you need the span tree alone and want to skip the log/exemplar lookup.
Spans come ordered by (timestamp, spanId) ascending; each carries parentSpanId so you can rebuild the tree. The summary gives root operation, span count, error count, total duration, and start time at a glance.
A trace with more spans than one response holds (10000, or fewer when spans are large) comes back with spansTruncated true, its earliest spans and a truncationHint: the spans call that reads the rest.
Returns spans' core fields by default; pass verbose=true to include their
attributes (flattened in, plus a resource object). Long string values are capped.
For raw columns or custom selection use run_sql.
Reading one long value: pass spanId and path to get one value of one span, in full or in slices, instead of the trace. A run_sql or spans result that cut a long value shows a marker with "truncated": true, the value's full length (chars), its structure (keys) and a "more" call that reads on.
Parameters for a slice: spanId; path, what to read: a column (raw, status_message), an attribute name (input.value), or a JSON path into a column or attribute holding JSON (output.value.results[2].body); find, text to jump to: the slice starts just before its first match at or after offset; offset, the character position to start at (default 0); length, how many characters to return (default 20000, max 50000).
A slice returns: spanId, path, chars (the value's full length), offset, text (the slice), nextOffset (null once the slice reaches the end), matches (every place find matches in the whole value, up to 20, each with its offset and the text around it; the slice starts at the first one at or after offset), and keys (the structure of the value at path, when it is JSON). To read on, call again with offset=nextOffset; to read another match, call again with offset set to that match's offset.
Returns (whole trace): traceId, traceUrl, rootOperation, spanCount, errorCount, totalDurationNanos, startTime, spans[], queryStats, spansTruncated, truncationHint. traceUrl opens this trace as a waterfall in the Fixter app, every span on its timeline with its attributes. When the user asks to see, open or visualize the trace, send them traceUrl rather than drawing the waterfall yourself; attach it whenever you cite the trace as evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | No | Text to jump to; the slice starts just before its first match at or after offset. | |
| path | No | With spanId: column, attribute name, or JSON path, e.g. raw, input.value, output.value.results[2].body | |
| length | No | Characters to return. Default 20000, max 50000. | |
| offset | No | Character position to start at within the value. Default 0. | |
| spanId | No | Span id, lowercase hex. With path, returns that value of this span instead of the trace. | |
| traceId | Yes | Lowercase hex trace id | |
| verbose | No | Return full spans incl. attributes and resource. Default false. |