Public Beta. This content is updated as features change.

Find the failing step in a trace

On the trace screen, select the row marked with an error to open the command it ran and its output. The same screen shows what fixed it afterwards.

View as Markdownllms.txt

Click Trace at the end of a turn and select the row with the error, and the command and result appear on the right, with the Actions tab showing what fixed it.

Session and Trace screens (sample data) · No sound · 8.8 s

A trace is one prompt and everything it ran. The tools the AI called are laid out in time order, and failed rows carry an error badge. Select one and the command and its result open on the right. The Actions tab on the same screen shows what fixed the failure and whether the next run passed.

Open a trace with a failure

  1. On the session screen, find a block whose test summary reads something like "1 test failed, then 39 passed", and click "trace" at the end of it.
  2. To search the whole project, open Tracing under Observability in the sidebar and set Status to Error under Span in the filters. Typing status:error in the query bar does the same. Add a type and a name to narrow it further, as in type:tool status:error name:Bash.
  3. Each row in Tracing is one span. Click a row to open its trace with that span selected.

Select the row marked with an error

  1. The Span List on the left is a tree of spans indented by parent. Each row shows the type icon, the name, a detail (the model or the start of the arguments), any error badge, duration, cost and tokens.
  2. When the trace opens, only the selected span and its parents are expanded; other rows with children start collapsed. Expand the branches you need.
  3. Type a name into "Search span names" to expand every row and show the matches.
  4. Click a row with the "error" badge to select it. For a test failure, the badge also carries a summary such as "1 failed".
  5. To see how steps overlap in time, switch to Waterfall. It puts a shared timeline next to the same tree, and you can select a range to zoom in.
Trace

Select the failing step in the tree on the left; its details open on the right.

Trace (sample data)

Read the command and its output

The details of the selected span open on the right.

  1. Under the heading you'll see the time, duration, the start of the arguments, tokens and cost, key attributes (such as level: ERROR) and the result badge.
  2. On the Preview tab, read the input and output. Switch the input between Formatted and JSON. Metadata lists values such as tool_name, success and exit_code.
  3. On the Attributes tab, read the span's own attributes and the ones shared across the trace, in two tables.
  4. On the Log View tab, read the trace's spans in time order.

Input and output are content. If your workspace's "who can read content" setting doesn't include you, or the content wasn't collected, you'll see the reason instead. Attributes, durations and result badges stay readable.

See what fixed it on the Actions tab

  1. With the failed test run selected, open the Actions tab.
  2. Linked work lists the issue, pull request, CI run and session linked to this trace's session, one per row.
  3. "What this span led to" lists what came next in the same trace:
    • Next run passed: a later run of the same test that passed.
    • Fixed by: file edits made between the failure and that passing run. These appear only when the next run passed.
    • Landed in: the merged pull request that contains an edited file.
  4. If there's nothing, you'll see "Nothing recorded after this span."

Share it or move to the next trace

  1. From More, use "Copy link to this trace" or "Copy trace ID".
  2. Download saves the trace as JSON or OTLP, or the span list as CSV.
  3. If you opened the trace from Tracing, "Previous trace" and "Next trace" step through the list.
  4. Click the session, member, issue or pull request in the header line to open it.

FAQ

What about work that kept running after the prompt ended?

A trace with work that continued after the prompt shows the count and length of that work after the duration in its header. That tells you some time isn't included in the duration.

Can I link a trace to a different issue?

Yes. Use "Link to issue" in the span details header to link this trace's session to another issue. It needs the Member role or higher.

Can viewers read traces?

Yes. Input and output text shows only if the "who can read content" setting includes you.