Traces
Traces
Get Trace or Span Detail
Retrieve detailed trace information with hierarchical span tree, or a specific span within the trace.
Without span_id parameter: Returns the full trace with hierarchical span tree:
- Trace metadata (ID, status, duration, context)
- Hierarchical tree of all spans
- Each span includes timing, status, and type-specific metadata
With span_id parameter: Returns details for a specific span within the trace:
- Span metadata (ID, name, type, timing)
- Status and error information
- Type-specific attributes (model, tokens, tool params, etc.)
Span Hierarchy (full trace): The tree field contains root spans, each with potential children. This recursive structure represents the execution flow:
get/traces/{trace_id}
Request
- The document declares no server URL.
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Changes
No recorded changes to this operation across all 1 revision of this API.