What the Trace Graph shows
When someone sends your agent a message, the agent rarely answers in one move. It might ask a model what to do, look something up, charge a card, retry a call that timed out, and then ask the model to write the reply. Each of those moves is a step. The Trace Graph draws the steps for one message as a diagram. The message sits at the top and its steps hang underneath it. Use it when you want to know:- What did the agent do for this message?
- Which step was slow?
- Which step failed, and did a retry fix it?
- What did a step receive, and what did it return?
Step types and colors
What your app needs to send
The Trace Graph has no setup of its own. It is drawn from the steps, called spans, that your app already reports, so there is no switch to turn on. Four things in each span decide how its box looks.botgauge.turn.root, which is the span the BotGauge SDK opens for each message, that span becomes the turn and its details appear there. Otherwise the turn box is built from the trace itself and the top-level spans sit under it.
Sessions. Traces that carry the same session ID are grouped into one session. A trace without a session ID opens on its own.
Open the Trace Graph
Go to Logs
Pick a tab
Click any row
Choose Graph view

The Logs page. Select a row to open it.
Read the graph
The graph belongs to one trace. The top box is the message, and the boxes below it are the steps the agent took for that message.
The booking trace in Graph view.
- Graph view tab. Switches the panel from Messages or Timeline to the graph.
- The message. The top box is the trace. Its time is the total for the whole reply.
- A model call. Teal. The name includes the model that was called.
- A tool call. Orange. The name is the tool the agent used.
- Connector. A line from a step down to the steps it started. The step above is the parent, the step below is the child.
- Trace switcher. “Trace: 2 of 5” shows where you are in the session. Use the arrows to move to another trace. The arrows at the top right of the panel, beside the latency and cost labels, do something different: they move to the next row of the list you opened the panel from, such as “Session: 1 of 4”.
- Zoom. The plus button zooms in and the minus button zooms out.
- Fit View. The button with four corner marks. It re-centers the whole graph so every step is in view. Hover over it to see its name.
- Minimap. A small map of the whole graph. Its colored bars match the step colors.
Anatomy of a box

One box, enlarged.
- Icon. The type of step. It matches the color table above.
- Name. What the step is called.
- Status. A green tick means the step finished. A red cross means it failed.
- Duration. How long the step took, in seconds, beside a small clock.
hold_fare, charge_card, and confirm_booking. The final model call, which writes the reply, is the right-most box.The Timeline tab shows the same order from top to bottom, with a bar for how long each step took. Each step’s Created At time in its details shows when it started.Look inside a step
Click any box. It gets a colored outline, the line back up to the message takes the step’s color, and a panel opens on the right with everything the step received and returned. The panel shows the step’s input and output, how long it took, what it cost, and its other details. The Messages tab explains every part of it, with screenshots of a turn, a model call, and a tool call. It is the same panel in both places.Find what went wrong
Look for a red cross
Click the box
Look at the box above it
Read the attempts from left to right

A clinic assistant rescheduling an appointment. Session 4, trace 2 in the sample project.
- The grouping step.
reschedule_with_retryholds both attempts. It finished normally, so it is green. - The failed attempt. On the left, with a red cross and 1.5 seconds. The calendar service did not answer in time.
- The retry. On the right, with a green tick and 0.35 seconds. The second call worked.
- The error. The Response gives the code
CALENDAR_TIMEOUT, the message, andretryable: true.
Open the Trace Graph in the console
Go to BotGauge, open a session in Observability, Logs, and choose Graph view.
Common questions
Does a red cross mean the user got an error?
Does a red cross mean the user got an error?
The graph looks small after I open a step. Why?
The graph looks small after I open a step. Why?
Can I move the boxes?
Can I move the boxes?
Why do I see one trace and not the whole conversation?
Why do I see one trace and not the whole conversation?
How do I zoom and move around the graph?
How do I zoom and move around the graph?
In what order are the boxes?
In what order are the boxes?
Where does the graph come from?
Where does the graph come from?
.png?fit=max&auto=format&n=rExdh2xAS2_ywWU5&q=85&s=2336659947d2543be68f95bf2d539b85)