> ## 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.

# Sessions

> Review a conversation by turn and inspect the associated Trace.

Find a native Session in the list using its Trace count, duration, and token usage, then open its details to inspect costs, coverage, and separate subscription references. See [complete model costs](https://aivision.mintlify.site/en/guides/model-pricing.md) to add rates or understand unknown results.

## Sessions and Traces

A Session groups Traces from one conversation. A Trace describes an execution through model, tool, and other spans. **Turns** in the detail view counts linked Traces: each Turn card represents one Trace, which need not equal one user message. Event and log counts may be much larger.

## Open and review a Session

You need a collected execution with a session ID. If you have no records, complete [Agent onboarding](https://aivision.mintlify.site/en/web-quickstart.md) or [SDK onboarding](https://aivision.mintlify.site/en/integrations/langfuse.md) first. A Trace without a session association does not automatically create a Session.

1. Click a session ID in **Data dashboard → Session statistics**, or open **Agent traces** and click **Session** at the top. Select the correct space, Agent, and a time range covering the task.
2. If **SigNoz / Langfuse** buttons appear, choose the record’s source. Both sources provide Session lists and Turn reading; the same ID may not exist in the other source.
3. For native Sessions, enter a known ID or consecutive part in **Session ID or part of it** and press Enter, or select a row. Check its ID, Turns, duration, and reported Tokens.
4. Expand a Turn card to read Input / Output. In native details, the header's single **Messages / JSON** control changes both fields across all turns together.
5. Click the header magnifying glass (**Search**) and enter `Turn 1` or a collected content keyword. This searches the loaded turns; clear it to show them all again.
6. Click the name with an external-link icon in the card header (tooltip: **Trace Detail**) to inspect the model and tool calls.

You are done when you can record the Session ID and one linked Trace ID and match that turn’s input or execution structure to your task. Session duration is elapsed conversation time, not continuous model activity. Session totals and individual turn usage have different scopes.

[![Read context, then inspect the run](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/session-reading.en.light.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=38125407d279537c6f0a50ec18d42284)](https://aivision.mintlify.site/assets/diagrams/session-reading.en.light.svg)

[![Read context, then inspect the run](https://mintcdn.com/aivision/coKTz7l1X0d3dZJw/assets/diagrams/session-reading.en.dark.svg?fit=max\&auto=format\&n=coKTz7l1X0d3dZJw\&q=85\&s=8ad26332e9d01e1d656e1677df61173d)](https://aivision.mintlify.site/assets/diagrams/session-reading.en.dark.svg)

Read context, then inspect the run · Concept diagram · Open full-size SVG

This fictional task illustrates the reading order. Understand the context, then open the related Trace from a relevant turn; use the entry points in your current UI.

The screenshots below show previously collected real-model records from synthetic Codex tasks. Reading and capturing these records made no new model calls. Verify your own executions and outcomes against your environment.

[![Native Session details with one Messages/JSON control for all turns, speaker labels, and source-node disclosures](https://mintcdn.com/aivision/kotYnz-DJHl_S6HV/assets/figures/session-query-review/session-messages.en.light.jpg?fit=max\&auto=format\&n=kotYnz-DJHl_S6HV\&q=85\&s=95cd7db3f73e82fe1f76f02a2b1e9dc3)](https://aivision.mintlify.site/assets/figures/session-query-review/session-messages.en.light.jpg)

[![Native Session details with one Messages/JSON control for all turns, speaker labels, and source-node disclosures](https://mintcdn.com/aivision/kotYnz-DJHl_S6HV/assets/figures/session-query-review/session-messages.en.dark.jpg?fit=max\&auto=format\&n=kotYnz-DJHl_S6HV\&q=85\&s=94e021b2d46e397135658d837ec0d220)](https://aivision.mintlify.site/assets/figures/session-query-review/session-messages.en.dark.jpg)

Session messages and their source nodes · Synthetic Codex tasks, previously collected real-model records · No new model calls · Click to enlarge

> [accordion] Earlier demonstration layout
>
> These earlier screenshots use fictional demonstration tasks and accounts. They illustrate turn expansion, not the current content controls or filters; some recorded labels are Chinese.
>
> [![Expand a turn and open its Trace](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-session-turn.en.light.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=557e807079be094f26bc4c17fac96caa)](https://aivision.mintlify.site/assets/figures/ui-session-turn.en.light.png)
>
> [![Expand a turn and open its Trace](https://mintcdn.com/aivision/4-JwUfsIEnWxcWuE/assets/figures/ui-session-turn.en.dark.png?fit=max\&auto=format\&n=4-JwUfsIEnWxcWuE\&q=85\&s=098de15d9c71119c244a6056fa849a89)](https://aivision.mintlify.site/assets/figures/ui-session-turn.en.dark.png)
>
> Expand a turn and open its Trace · Earlier layout (English settings; some Chinese labels) · Demo data · Click to enlarge

Check the Session ID and the expanded turn's input and output against the task you are reviewing. Open that turn's Trace to inspect its calls. Session totals and this turn's usage have different scopes.

In native **Messages** view, labels such as **User**, **Assistant**, and **Tool** identify reported speakers. Their colors identify roles, not success, confidence, or answer quality. Expand reported **Thinking**, **Tool Call**, or **Additional fields** to inspect auxiliary content. **JSON** preserves the recorded values, types, and fields; unrecognized message structures remain available as JSON. Switching the view does not change source records or exports, or run the task again.

Expand a source entry under **Source node** below a turn to read its full **Trace ID**, **Span ID**, and **Selection rule**. Input and Output share one source entry only when all three match; differing sources remain separately labeled. A missing source stays **Unknown source** and does not borrow the other field's source. Available content has no extra availability badge; explicitly empty, unknown, unfinished, or cancelled states remain visible when reported. These states describe content availability, not execution success.

## Filter and verify a complete Session

These filters apply to native Sessions. Confirm the space, Agent, and time range first. Counts and expanded content retain every Trace with that Session ID under the selected Agent **within the selected time range**. Turns outside that range are not counted. An integration must keep reporting the same session ID for executions in one conversation; a new ID on each execution produces separate single-turn Sessions.

| Control | Meaning and use |
| - | - |
| Session ID or part of it | Enter a complete ID or consecutive part and press Enter. ID matching is case-sensitive. |
| Content search | Choose Input or Output to match consecutive characters in each Trace's complete record, without case sensitivity. It uses the same scope as [Trace content search](https://aivision.mintlify.site/en/guides/traces.md#combine-list-filters), not all internal Span bodies or truncated previews. |
| Session status | **Contains errors** if any Trace's root status reports an error; **All successful** only if every Trace's root reports success; otherwise **Status incomplete**. A recovered child failure does not independently change the root status. |
| Time span | First Trace start to last end, including gaps between turns. Use shortcuts such as `1m` or `5m`, or enter a minimum. If any Trace has no reported end, the complete span is unknown and does not match a time threshold. |
| More filters → Trace count | All Traces in the complete Session. Choose 2, 5, 10, or 20, or enter a minimum. This is neither the user-message count nor the Span count. |
| More filters → Total Tokens | The complete Session's reported total. Choose 1K, 5K, 10K, 50K, or 100K, or enter a minimum of at least 100. Missing model-call usage leaves the total unknown; it is neither zero nor a match for a Token threshold. |
| More filters → User, Tags, Deployment environment | The same task user, tags, and reported environment as native Traces. The task user is not the signed-in account; missing values do not infer a business user or production deployment. |

List-filter minimums are `1ms` for duration, `1` for Trace count, and `100` for total Tokens. Invalid input or an older link containing `Tokens ≥ 0` shows a validation message; correct or clear the condition before querying. Values are never silently changed to another threshold. Clearing the Token condition removes that minimum while other filters remain active. Explicitly reported `0` remains `0` in records.

Different conditions combine with AND; selected tags combine with OR. User, tag, environment, and content predicates must match **the same Trace**. User A on one turn and tag B on another do not satisfy “user A AND tag B.” Session status, Trace count, time span, and total Tokens are evaluated over the complete Session.

For example, set **Trace count ≥ 3** and **Total Tokens ≥ 10K**, then search a phrase from a middle turn's input. A matching Session still shows its full Trace count and usage. Its details show the match count and mark the corresponding cards **Matched trace**, while retaining the other turns. The first-input and last-output list previews may not contain the middle turn's matched text; open the marked card to verify the full record.

[![Filtered Session list retains all 3 Traces and 67,768 Tokens and reports 1 matching Trace](https://mintcdn.com/aivision/kotYnz-DJHl_S6HV/assets/figures/session-query-review/session-filters.en.light.jpg?fit=max\&auto=format\&n=kotYnz-DJHl_S6HV\&q=85\&s=c3115cf525a045f0775c8bcd285df5f9)](https://aivision.mintlify.site/assets/figures/session-query-review/session-filters.en.light.jpg)

[![Filtered Session list retains all 3 Traces and 67,768 Tokens and reports 1 matching Trace](https://mintcdn.com/aivision/kotYnz-DJHl_S6HV/assets/figures/session-query-review/session-filters.en.dark.jpg?fit=max\&auto=format\&n=kotYnz-DJHl_S6HV\&q=85\&s=82d18033c0b867e39dd26a999f818648)](https://aivision.mintlify.site/assets/figures/session-query-review/session-filters.en.dark.jpg)

Combined Session filters retain every turn · Synthetic Codex tasks, previously collected real-model records · No new model calls · Click to enlarge

List **Content search** selects complete Sessions and marks their matching turns. The detail header's **Search** only narrows loaded turn cards; it does not change the outer query or Session totals. **Messages / JSON** only changes how those cards display content.

Remove conditions individually, or use **Clear all** to clear ID, content, and other list conditions. User, tags, environment, and content can carry between native Trace and Session views. Switching clears conditions with different meanings, such as status or duration, and view-specific thresholds, with a notice. External Langfuse Trace supports Input search; its Session list does not support native Input/Output content search or aggregate thresholds. Those unsupported conditions are cleared with a notice and do not reactivate when you switch back. Supported ID and environment conditions remain; source-specific user identities are cleared rather than reinterpreted.

For empty results, expand the time range or clear conditions first. If Traces exist but no Session appears, check that they report a shared Session ID. Narrow the time range if the query exceeds the supported range; partial results are not a complete Session.

The URL saves query conditions, not a snapshot of the records. Later reporting or corrections can change counts and content within the same time range, and separate pages can observe different updates. Refresh the list to query it again; reload the page and reopen details when checking newly reported content. Returning to the browser tab does not guarantee a refresh, and refreshing the list does not reload every item in an open detail. Local turn search and display switches use the loaded content.

## Review the task across turns

Read the initial input to identify the actual goal, then expand turns in time order. Check whether later instructions changed that goal, whether tool failures were retried, and whether the final answer matches actual tool results. Cross-turn problems require more than the last answer.

For a turn with unusually high usage, inspect its model nodes and [token accounting](https://aivision.mintlify.site/en/guides/token-usage.md) to check for more historical context. Event counts are not user-turn counts, and session duration does not mean the model was active throughout.

## Export and share

Sign in with an account that can access the space, open the target details, and review the content. Creating a share link checks space access; it does not require an administrator role. Current entry points are:

| Detail source | Download JSON | Share |
| - | - | - |
| SigNoz Trace / Session | Download icon in the header | Share icon in the header |
| Langfuse Trace | Download icon in the header | Share icon in the header |
| Langfuse Session | Download icon in the header | No Share button in the current Session detail; open a linked Trace to share it. |

### Save and check an export

1. Click **Download JSON** in Session details and wait for the download. The filename starts with `session-`.
2. Open the file and check `sessionId`, `traceCount`, `exportedTraceCount`, `completeness`, and `failedTraceIds`.
3. If some Traces failed to export or `completeness` is `partial`, reopen the failed IDs and retry the export. `unknown` means completeness is unconfirmed. A downloaded file with either status is not a confirmed complete Session backup.

For automated exports, see [CLI queries](https://aivision.mintlify.site/en/guides/cli.md). Exports use records you can read; they cannot recover uncollected or Privacy-filtered content.

### Create and check a share link

1. Select the space, Agent, source, and query time range, then open the details to share. A native Session share preserves the current query time range.
2. Review inputs, outputs, tool arguments, and metadata for access by anyone holding the link, then click **Share**. Opening the dialog generates a link automatically. There are no recipient or expiry settings in this dialog.
3. Click **Copy link**, open it in a new browser window, and verify the record ID and content scope on the share page before sending it.

Anyone with a valid share link can read its authorized scope without signing in. An ordinary page URL or Trace ID does not grant that access. The dialog states the default lifetime of 7 days. Server configuration can change it; check with the maintainer if your deployment uses a different lifetime. If generation fails, check sign-in and space access. For an expired link, an authorized member must reopen the details and generate a link. For missing records, verify the associated Trace with [missing-data troubleshooting](https://aivision.mintlify.site/en/help/no-data.md).

## When a turn does not open

Confirm the space, Agent, and time range, then search for the record in **Agent traces → Trace**. A Session or event may exist before its linked Trace is complete. If it still fails, check collection and connectivity in [Troubleshooting](https://aivision.mintlify.site/en/help/faq.md).


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