Traces show the hierarchy of work inside one run. Use this view when you need to understand what happened end-to-end — which sub-chain decided to call which tool, how long each step took, and where the request went wrong.Documentation Index
Fetch the complete documentation index at: https://docs.flowx.ai/llms.txt
Use this file to discover all available pages before exploring further.
Span hierarchy
A trace is a tree of spans. Each span is one event the SDK reported: Spans are nested byparent_run_id. The first span (root) is the agent call itself. Each chain or tool nested inside gets its own span. Leaf spans are the LLM calls or tool invocations.
What you see per span
| Field | Meaning |
|---|---|
| Name | Decorator string from @chain("..."), @tool("..."), or the LangChain class name. |
| Type | agent, chain, tool, llm, or a custom event. |
| Duration | Wall-clock milliseconds between *_start and *_end. |
| Status | success, error, or in_progress. |
| Input / output | Raw payloads, rendered as text or JSON. |
| Tokens | Per-LLM-call token usage when the provider reports it. |
| Cost | Derived from token usage × the model’s per-1k-token rate. |
Reading a trace
Scan the tree for red
Failed spans are highlighted. Their parent chain typically captures the error message in the output.
Inspect the slow spans
Sort or eyeball the duration column. A single tool call dominating the duration usually points at the bottleneck.
Comparing two runs
Observatory ships a comparison endpoint that surfaces side-by-side diffs of two runs. From the trace view, click Compare and pick a second run. Useful for:- Investigating a regression after a prompt change
- Comparing the same input across two model versions
- Diffing a passing dataset run against a failing one
Saved runs
A run is marked saved when an event with namesaved is emitted for it. Saved runs persist beyond retention windows and surface in dataset workflows.
Related resources
LLM Calls
The table view that links into trace detail.
Threads
Multi-turn views built on the same trace data.

