> ## Documentation Index
> Fetch the complete documentation index at: https://aivision.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Read the relevant procedure and prerequisites before suggesting commands. Cite the section and give an observable check. Treat sample data as illustrative. Report product actions and results only when verified in the user's environment.

# Compare two Traces

> Select two native Traces, compare duration and Tokens, then locate Conversation, Memory, Skill, MCP and decision calls.

Use Trace comparison to verify metrics and calls across two rounds of a project, such as an initial review and a follow-up after changes. First check whether the goals, inputs, and models are comparable. Read the actual outputs to assess task quality.

> [!NOTE]
>
> This [Beta enhanced view](https://aivision.mintlify.site/en/guides/observability-enhancements.md) requires a deployment with the **Compare** entry on [native Traces](https://aivision.mintlify.site/en/guides/traces.md). External Langfuse sources do not currently provide this entry. Sign in, select a specific Agent, and choose two readable native records.

The recording uses a synthetic task to demonstrate filtering and opening the source call.

## 1. Select two Traces

1. Open **Observation → Trace** and select the space, Agent and a window containing both tasks.
2. Select two rows in the **Trace** list. When comparing before and after a change, select the earlier run first as A and the later run second as B. Then select **Compare** in the bottom action bar.
3. In **Run overview**, check both Trace IDs, inputs, models, and start times. Select the shortened Trace ID on a card to open the full source.

If the button is unavailable, check that exactly two rows are selected, that you are in Trace rather than Session view, and that the source is native. If one side fails to load, check the window and access permissions; do not treat a failed request as an empty Trace.

## 2. Read the run overview

Differences are **B − A**. Red means an increase, green a decrease, and gray no change. Color does not judge task quality. A zero baseline has no percentage delta; missing metrics stay unreported rather than becoming zero.

| Metric | Scope |
| - | - |
| Total duration | The entire Trace's time span, not the sum of call durations. |
| Total, input and output Tokens | Recorded usage for the Trace. Missing data cannot establish savings. |
| Run count | All Spans in the Trace, including roots, models and ordinary tools; not the count of enhanced calls below. |

Hiding call types does not change these complete-Trace metrics.

## 3. Filter the timeline and details by type

The **Time from trace start** header shows five switches: **Conversation, Memory, Skill, Decision and MCP**. Types with no calls show **0** and stay disabled. From the Trace list, available Conversation, Memory, Skill and Decision calls start visible; MCP starts hidden. Enable **MCP** or **Show all** to display it. The [sample walkthrough](https://aivision.mintlify.site/en/try-sample.md) starts with MCP enabled.

Timeline markers and detail rows share type icons: a message for **Conversation**, a branch for **Decision**, a plug for **MCP**, a database for **Memory**, and blocks for **Skill**. In `A1` and `B1`, the letter identifies the Trace and the number retains its original call index. This differs from the input/output message numbers inside a selected conversation.

<video controls playsInline preload="none" poster="/assets/walkthrough/en/trace-compare.webp" src="https://mintcdn.com/aivision/qGp0V6y6p5Gih57B/assets/walkthrough/en/trace-compare.mp4?fit=max&auto=format&n=qGp0V6y6p5Gih57B&q=85&s=e566842c7530627087dd24781d13424a" aria-label="Select two Traces, show MCP calls, and open the failed source Span from B3 · Demo data · Chinese UI" />

Select two Traces, show MCP calls, and open the failed source Span from B3 · Demo data · Chinese UI

In the recording, enable **MCP** and select B3 to expand its failed call. Select **View** in the **View run** column and confirm `504 Gateway Timeout` in the source Span. Your references depend on the records. You can also [follow the full sample to check the failure and successful retry](https://aivision.mintlify.site/en/try-sample.md#compare-retries).

[![Trace comparison showing five type switches, A/B conversation markers and selected input message 9 and output message 7](https://mintcdn.com/aivision/LPsnHhb_6G33JJTN/assets/figures/trace-reading/compare.en.light.png?fit=max\&auto=format\&n=LPsnHhb_6G33JJTN\&q=85\&s=2201c68cea2cc1b18d240bc319ea3d1a)](https://aivision.mintlify.site/assets/figures/trace-reading/compare.en.light.png)

[![Trace comparison showing five type switches, A/B conversation markers and selected input message 9 and output message 7](https://mintcdn.com/aivision/LPsnHhb_6G33JJTN/assets/figures/trace-reading/compare.en.dark.png?fit=max\&auto=format\&n=LPsnHhb_6G33JJTN\&q=85\&s=7f1137dd7ec1f5f0a070ac1525279220)](https://aivision.mintlify.site/assets/figures/trace-reading/compare.en.dark.png)

Conversation calls on the timeline, with independently folded input/output in the selected row · Synthetic data · Click to enlarge

* Switches filter the timeline and details together. Original references stay unchanged, so B1 followed by B4 is normal after hiding MCP.
* Positions are relative to each Trace's own start. Thin bars show call duration; label width does not. Filtering does not rescale the axis.
* Select a reference to locate and expand its details; select it again to collapse. Keyboard focus and activation are supported. Hover or focus links a marker to its row without replacing the expanded call.
* Hiding the selected type closes its details and clears its highlights. **Show all** recovers an all-hidden view.
* Hidden calls with reported failures remain visible as a count in the header. This does not count unreported outcomes as failures.

Calls without a recorded start appear in **Time not recorded** with their type icon, original reference, and detail action. They are not assigned an invented time or placed proportionally on the axis. Missing duration differs from an explicitly recorded **0 ms**.

## 4. Inspect a call's returned evidence

For a **Conversation** call, check the input/output roles and original message numbers, then expand either side as needed. JSON starts as a shallow tree with branch expansion and **JSON** mode. Expanded long text flows through the page. History and **Full message and metadata** remain available, and copy preserves complete content. Long call names use one ellipsized line with the full title on hover; the model stays on the next line. See [Span content enhancements](https://aivision.mintlify.site/en/guides/span-content.md#read-conversations).

[![Selected memory call and its returned evidence](https://mintcdn.com/aivision/nmrE5CzfSWbA6aeu/assets/figures/memory-compare/compare-evidence.en.light.png?fit=max\&auto=format\&n=nmrE5CzfSWbA6aeu\&q=85\&s=371364e5dc7a07f2e17adbdbff1df767)](https://aivision.mintlify.site/assets/figures/memory-compare/compare-evidence.en.light.png)

[![Selected memory call and its returned evidence](https://mintcdn.com/aivision/nmrE5CzfSWbA6aeu/assets/figures/memory-compare/compare-evidence.en.dark.png?fit=max\&auto=format\&n=nmrE5CzfSWbA6aeu\&q=85\&s=27401e67e81857e107179772a53fa2e5)](https://aivision.mintlify.site/assets/figures/memory-compare/compare-evidence.en.dark.png)

Selected memory call and its returned evidence · Demo data · Click to enlarge

Expand a memory call under **Memory call results** to inspect individual entries, memory states and search scores. Copy an entry or open **View original response**. Write acknowledgements retain their original content. MCP, Skill and Jev decision calls show their recorded details. When no result can be parsed, open the full trace to continue inspecting the source.

Select **View** in the **View run** column to open the source call, or use **View full trace** for context. Check that its Trace ID and Span ID match the selected A or B call. After changing the time range, both traces and source links use the same query window. Manual refresh recalculates a relative window.

To investigate cross-round memory use, check the returned record, subsequent model input and actual actions. **A search hit does not prove adoption; fewer calls do not prove savings.** Changes to input, model or task phase can affect the metrics. See [cross-round memory inspection](https://aivision.mintlify.site/en/guides/memory-observability.md#5-follow-memory-across-project-review-rounds).

## 5. Compare a decision with its execution

Select a decision reference on the timeline. In **Jev decision comparison**, inspect the question, model result, linked execution and call usage separately. Usage is listed once per call; one Span may contain several judgments.

[![Decision call and linked execution](https://mintcdn.com/aivision/nmrE5CzfSWbA6aeu/assets/figures/memory-compare/compare-decision.en.light.png?fit=max\&auto=format\&n=nmrE5CzfSWbA6aeu\&q=85\&s=d97c91f5975b95af84f4e09641973c94)](https://aivision.mintlify.site/assets/figures/memory-compare/compare-decision.en.light.png)

[![Decision call and linked execution](https://mintcdn.com/aivision/nmrE5CzfSWbA6aeu/assets/figures/memory-compare/compare-decision.en.dark.png?fit=max\&auto=format\&n=nmrE5CzfSWbA6aeu\&q=85\&s=add5bef18a2c174bd65922c7de065cd6)](https://aivision.mintlify.site/assets/figures/memory-compare/compare-decision.en.dark.png)

Decision call and linked execution

The example chooses a model for the review, then opens its actual call through **Linked execution**. The decision model, suggested model and executed model are distinct fields. Missing linkage does not establish execution. See [Decision traces](https://aivision.mintlify.site/en/guides/decision-traces.md) for the result formats.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.