Skip to main content
Admin › Evaluation › Tracing
Tracing records every step of AI request processing.
  • What documents were searched, what tools were invoked, what prompt was sent to the LLM — every step is transparently visible.
Tracing search screen

Admin > Evaluation > Tracing — search traces by Chat ID or Message ID

Example — without tracing vs. with tracing
Agent answered “I can’t find that information”
Tracing is a licensed feature. Requires a license with trace feature enabled.

Tracing Concepts

Processing a single user message involves multiple steps.
  • Tracing records all these steps in a Trace > Run hierarchy.

Tracing Entry Methods

All three paths lead to the same Evaluation › Tracing screen — buttons ① and ② navigate automatically when clicked, while ③ searches directly by ID.
The standard path where an admin picks a specific conversation from the operations screen and enters tracing.
1

Open conversation logs

Go to Monitoring › Conversation Logs.
2

Select a conversation

Click the conversation (request) row you want to investigate to open its detail.
Entering tracing via the Trace button in conversation logs

Expanding a conversation shows a 'Trace' button on the right

Arrive at Evaluation › Tracing

Clicking the Trace button in the detail automatically opens the Evaluation › Tracing screen.

Destination · Evaluation › Tracing

No matter which of the three paths you enter through, the destination is a single screen: Evaluation › Tracing below.
Evaluation › Tracing — list of message cards

Evaluation › Tracing arrival screen — search list (message cards)

Once you arrive, pick a trace from the search list (message cards) and open the detail view.

Searching Traces

Searching by Chat ID or Message ID on the Evaluation › Tracing screen produces a list of message cards like the screen above.
  • Each card is a summary of one user message’s trace, and clicking a card opens the detail view.
The search-criteria and card-item tables are collapsed below.
Search retrieves all traces matching the entered ID with no time limit. (There are no separate filters such as date or status.) Results are paged 20 at a time, so use the page controls at the bottom when there are many.

How to Read the Trace Detail View

This is the heart of tracing.
  • Here you see what steps a message went through and what went into and came out of each step.
(Detailed notations such as badges and symbols are collapsed inside each tab — expand them when you encounter an unfamiliar marker.)
Trace detail modal — Run tree on the left, detail panel on the right

Trace detail — pick a step in the left Run tree and its inputs/outputs appear on the right

The screen is split into the left Run tree (lists processing steps in order and hierarchy, with total latency and total tokens at the top) and the right detail panel (inputs, outputs, and tokens of the selected step). The left panel header switches between three views: Tree · Timeline · Tokens. A single message typically goes like this — the agent (CH) repeats LM reasoning and tool calls to gather data, and finally final_answer (LM) writes the answer.
Each line (Run) is shown as colored badge + name + ● status + latency. Knowing just the frequently seen badges is enough to read the tree. (For the full list including colors, expand the legend below.)
  • ● Status — green means OK, red means an error at that step.
  • Adjacent time — that step’s latency. Note that a parent step (CH, ACT) includes the time of its children, so the largest raw value is not necessarily the bottleneck. The bottleneck the product computes is shown with its latency highlighted in red.
The view toggle in the left panel header shows the same step list three ways.
Auxiliary tasks such as auto-generating the title, tags, and search query are recorded separately from the response in the background_tasks trace.
The detail tree distinguishes step types by colored badges. (On search-result cards, they are grouped under labels like Agent · LLM · Embed.)Some types may not appear depending on your environment and version — real traces mostly record CH, LM, TL, RG, GD, EM, and TK.
All four states use the same dot shape and differ only in color.
The trace’s overall status is Error if any included Run is Error; if there’s no Error but a Running exists, it shows as Running.

Reading in Two Phases

Reading the agent’s response in two phases helps you find the cause quickly. The left panel header also shows a bar that computes these two spans for you, so you don’t have to add up step times — Extraction (trace start → final answer start) with its share, First token (total) (extraction + time to the answer’s first token = what the user actually waited), and First token (answer) (first token after the final answer step starts). Traces with no final answer step (background tasks, etc.) don’t show it.

Debugging Points

Check tool_descriptions (the names and descriptions of the tools attached to that run) in the Inputs of Phase 1’s first LM reasoning Run. To keep traces small, this entry is recorded only on the first LLM call, so later LM Runs may not have it.
  • Desired tool not in tool_descriptions → that feature (Knowledge Base, DB, etc.) isn’t connected to the agent
  • Tool present but not called → the model judged low relevance between the question and the tool. Make the tool/feature description more specific
active_capabilities (the set of features enabled at that moment) is visible in the Inputs of the Phase 2 final_answer Run.
Knowledge Base search is recorded as its own RG (Retrieval) Run (knowledge_search, or knowledge_fetch_chunks when chunks are re-fetched). Check the hit count, scores, and rerank status in that Run’s Outputs via total_results, top_scores, reranked, and sources.
  • No RG Run at all → search never ran. Check that a Knowledge Base is connected to the agent
  • total_results is 0 → zero search results. A KB document is missing, or search settings (Top K, Reranker, etc.) need review
  • Sources exist but the answer is off → check what was passed in the final_answer (LM) Run’s Inputs and adjust the answer prompt
sources_count and source_names in the final_answer Outputs are the number of source bundles placed in the answer prompt, so they can differ from the search hit count.
Click the TL (Tool) Run marked with a red dot, read the message in the Error area below Outputs first, and then verify the parameters passed in Inputs.
In the Run tree, the step whose latency is highlighted in red is the bottleneck the product computed. Switching to the Timeline view adds a Slowest extraction step: <name> · time (n%) summary underneath. The final answer step and any post-processing after it are excluded from the bottleneck calculation, since they happen after the answer is delivered.
  • LM slow → consider switching to a faster model
  • TL/EM slow → check tool/search settings or external services
  • GD (guardrail) slow → disable LLM judgment or switch to a faster model

Trace Analysis Report

A feature that analyzes trace data with an LLM to automatically identify the root cause of a problem. The top of the detail modal has Copy Trace and Analyze Trace buttons (plus View Report when a previous analysis exists). Copy Trace puts a text version on the clipboard — the trace summary (Trace ID, Chat ID, status, total latency, total tokens) followed by an indented step list (success/failure, step type, name, latency, tokens, model, and a preview of the start of the inputs and outputs). Use it when sharing an issue or attaching context to a support request.
1

Start analysis

Click the Analyze Trace button at the top of the trace detail modal.
The analysis model list shows base models only. Custom models derived from another model, preset models, and arena models cannot be selected.
2

Review analysis result

The LLM comprehensively analyzes trace data + agent settings + conversation history + KB/DB/guardrail settings + glossary settings + auto-evaluation results to generate a structured report.Sections with no relevant findings are omitted, so not every section appears every time.
Entering a description enables analysis focused on that context. Example: “KB found documents but they weren’t reflected in the answer”The report is written in the same language as the description. Write the description in the language you want the report in — leaving it blank may produce an English report.
3

Save/share report

These buttons live inside the analysis report modal.
When a previous analysis exists, the View Report button shows the trace analysis report directly without re-analysis.

Trace Management

Permissions

Reaching the tracing screen requires being an admin or holding evaluation read permission or higher. Users without it cannot open even their own traces in the UI, and without a tracing license the button is not shown at all.

Data Cleanup

Old traces are cleaned up in one of two ways.
  • Admin › Settings › Data Retention — set the retention days for Traces to clean up automatically, or click Run Cleanup Now to delete immediately. (recommended)
  • Developer APIDELETE /api/v1/traces/cleanup?before_timestamp_ms=<timestamp>. Bulk-deletes traces before the given millisecond timestamp; requires monitoring write permission.
Trace deletion is irreversible. Download necessary analysis reports before deleting.

Use Cases

  1. Click the View Trace icon on a chat message
  2. Select the final_answer (LM) step in the left Run tree
  3. In Outputs, check sources_count · source_names to see whether search results were reflected
  4. In Inputs, check what was passed to the model
  5. Generate a Trace Analysis Report to auto-identify the root cause
  1. Open the trace of a slow response
  2. Switch to the Timeline view and compare each step’s duration
  3. Identify the bottleneck step highlighted in red (a parent step includes its children’s time, so don’t judge by the raw maximum)
  4. Optimize that step (adjust search settings, change the model, etc.)
  1. Open the suspected trace
  2. Select the TL (Tool) Run marked with a red dot
  3. Check the message in the Error area below Outputs
  4. Verify the passed parameters in Inputs
  1. Check overall trace usage via total tokens at the top of the detail view
  2. Switch to the Tokens view, or compare per-LM Run Token Usage (Input/Output/Total)
  3. Check the token ratio of Phase 1 (agent run) vs. Phase 2 (final_answer)
  4. Identify unnecessarily large prompts or repeated calls

FAQ

Yes — when message tracing is enabled (default: enabled), all AI requests are auto-recorded. No additional setup needed.
By default traces are never auto-deleted — they are kept indefinitely. Automatic cleanup is off by default, and the retention days for every data type default to 0 (keep forever). To clean up old traces, go to Admin › Settings › Data Retention, set the Traces retention to 1 day or more and turn automatic cleanup on, or click Run Cleanup Now to delete immediately.
Traces are recorded inline with request processing as each step starts and completes. Every step adds a short save operation, but it is negligible next to LLM call time, so perceived response speed is barely affected.
Yes — trace analysis is a separate LLM call, tracked in usage as trace_analysis. Analysis only runs when manually triggered.

Guardrail Logs

Dedicated log for guardrail detection events

Auto-Evaluations

Automatic evaluation results for agent response quality

Usage

Token usage and cost analysis