Docs/Observability/Traces

Traces & Observations

The Tracing page is the main debugging view. It lists every request your application made, with inputs, outputs, timing, cost and the nested steps that produced the result.

ℹ

Open it from Discover AI > Tracing in the sidebar. To get traces flowing first, see Sending Data In. Listing traces and opening them need different permissions; see Who can see traces.

Owned view

A member whose role does not include Tracing, for example End User, sees the page once they own an agent, with the traces of their own agents only and the hint "You see traces from the agents you own only." They open those traces in the content-free view, unless their role has the content permission or Agent owners can see prompts and responses is on (see Content switches). The Observations tab, scores and write actions are not available in this view, and traces without an agent ID never appear. See Agent owners.

Budget AI view

A Budget AI Owner or Budget AI Viewer whose role does not include Tracing finds Tracing inside the Budget AI section of the sidebar. It lists only Budget AI (gateway) traces, on the Traces tab only. Opening a trace shows its trace metadata, such as key, model group, provider and attempts, but not prompt and response bodies, unless Budget AI Owners can see prompts and responses is on for a Budget AI Owner. Sessions, scores, tags, bookmarks, publishing, deleting, adding to datasets and export are not available in this view. Budget AI Department roles do not get it.

The page has two tabs: Traces (one row per trace) and Observations (one row per span, generation or event across all traces).

The trace table

Traces are listed newest first. Columns shown by default are Timestamp, Name, Input, Output, Observation Levels, Latency, Tokens, Total Cost, Environment, Tags, Metadata and one column per score. Session, User, Version, Release, Trace ID and detailed cost and token columns can be turned on from the column menu.

The search box has two modes:

  • IDs / Names (default): searches trace ID, trace name and user ID.
  • Full Text: also searches input and output. Narrow the table with filters first for better performance.

Filter

  • Date range: from 30 minutes to All time. The default is the last 24 hours.
  • Env: one or more environments.
  • Source: Gateway or SDK & OTel. Shown only when Budget AI is available in the project. A gateway call joined into an SDK trace is part of that trace, so it is under SDK & OTel.
  • Filters: build conditions on bookmarked, ID, name, timestamp, user ID, session ID, metadata, version, release, level, tags, token counts, level counts, scores, latency and cost, plus these investigation filters:
    • Has PII, Has PCI and Has PHI: yes or no. Traces where AI Guardrails found personal, payment card or health data.
    • Bias flagged: yes or no. Traces flagged for ethics and bias.
    • Jailbreak flagged: yes or no. Traces flagged for jailbreak or prompt injection.
    • AI service: a text match on the name of the agent or AI service that produced the trace (see AI Agents), with =, contains, does not contain, starts with or ends with. Only traces received after your deployment was upgraded to platform release v0.1.302 carry the AI service, so older traces do not match it.

Combine these with the date range, a user ID filter, the AI service filter and Full Text search to answer investigation questions in one place, for example "traces from this user to this AI service last week that contain payment data and mention a project name". The detection filters come from AI Guardrails. A trace that guardrails have not checked does not match them, so turn on detection for the agents you need to investigate. How far back you can search follows your data retention setting. For a guided workflow, see Investigations.

Open the full session

When a matching trace belongs to a session, select its session badge to open the whole multi-turn conversation in order. See Sessions.

Save a table view

Open the Table View drawer and choose Save Current Table View. A view stores filters, search, sort order, column order and column visibility. Saved views can be updated and shared as a link.

Batch actions

Select rows (or select every row that matches the filter) to:

  • Delete Traces. Deletion runs in the background. Deleted traces can stay visible for up to 15 minutes.
  • Add to Case to collect them in an investigation case. See Investigations.

Export

Choose Export above the table, then as CSV, as JSON or as JSONL. The export uses the current filters, search and sort order. It runs in the background. You get an email when it is ready, and the file is listed under Project Settings > Exports. You may be asked to confirm with MFA first. Trace and observation exports always include input and output, so they need the content permission as well as data export access. Among the built-in roles only Owner has both, so by default only Owners can export traces and observations. A custom role cannot combine the two permissions. Exports include the identity provider user ID of each trace when it is known. See Data Exports and Data Privacy.

The Observations tab has the same search, filter and export controls. The data classification, detection and AI service filters are on the Traces tab.

Peek

Click a row to open the trace in a side panel without leaving the table. Use the arrows to move to the previous or next trace, or expand it to a full page.

The observation tree

Open a trace to see its observations as a tree on the left. Search the tree by type, title or ID.

Observation typeRepresents
SpanA unit of work, such as a function, retrieval step or tool call
GenerationAn LLM call, with model, input, output, token counts, cost and parameters
EventA point-in-time record

Each observation has a level (Debug, Default, Warning or Error). Use Min Level in the settings menu to hide low-level noise.

Turn on Timeline to show the same observations as a time chart, so you can see what ran in parallel and where time was spent.

The settings menu also controls Show Graph (see Agent Graphs), Show Comments, Show Scores, Show Metrics and Color Code Metrics.

Use the download icon to save the trace and its observations as a JSON file.

Trace and observation details

Select the trace or any observation to see it on the right.

  • Badges: session, user ID, IdP user ID (on the trace, see below), environment, latency, cost (with a breakdown), token usage, release and version. Generations also show the model, time to first token, token counts and the linked prompt version. A tool call made for a verified user through the SDK's tool governance shows a Delegation badge, for example "Delegation: jane@example.com (verified) > agent support-agent > tool issue_refund".
  • Preview tab: input, output and metadata. Switch between Formatted and JSON. Chat messages are rendered as a conversation, and attached media is shown inline (see Multimodal & Media).
  • Scores tab: every score on the trace or observation.
  • Gateway panel: for requests that went through Budget AI, the key, model group, deployment, provider model, provider, request ID and cost. When the gateway joined a call into an SDK trace, the panel is on the gateway's generation inside that trace.

If your organization has turned off trace input and output, a notice replaces the content.

IdP user ID

When Directory Integration with Okta or Microsoft Entra ID is connected, a trace can carry the stable ID of the person behind it: the Okta user ID or the Entra object ID. The trace shows it as an IdP user ID badge. Unlike an email address, it does not change when the person's email changes, so it lines up with your identity provider and SIEM.

ANTS Platform looks it up when the trace arrives, in this order:

  1. The trace's user ID, when it looks like an email address or user principal name, matched against the directory. If it looks like one but matches no single directory user, the ID stays empty.
  2. Otherwise, the enrolled Discover AI device the trace came through.
  3. Otherwise, the person who claimed the Budget AI key the request used.

If more than one directory user could match, the ID is left empty rather than guessed. Display names are never used. Traces received before your deployment was upgraded to platform release v0.1.302 have no value. The ID is included in trace and observation exports, blob storage exports and SIEM push events. See Identity provider user ID on records.

Content view audit

When your ANTS deployment has content view auditing turned on, opening a trace, in the side panel or as a full page, is recorded in the audit log as a content view, once per person per trace in any 5 minutes. If the entry cannot be written, the trace does not open. Content view auditing is off by default; ask your ANTS administrator. See Content view audit.

Working with a trace

Inspect

Walk the tree or timeline, open the slow or failing step, and read its input, output and metadata.

Annotate and comment

Use Annotate to add scores by hand, or Add to case to add the trace to an investigation case. Use Comments to leave notes for your team on a trace, observation or session. See Scores. Deployments that hide score and evaluation settings also hide Annotate.

Organize

Add tags from the trace header or the Tags column. Star a trace to bookmark it, then filter on bookmarked traces.

Share

Use the share control to make a trace public. Anyone with the link can view a public trace without signing in. Choose Unshare to make it private again.

Reuse

Add a trace or observation to a dataset to build test cases. See Datasets.

⚠

Bookmarking, tagging, sharing, comments, deletion and saving table views are currently available only to the Owner role. Adding traces to a case needs the Tracing & Sessions permission at Read & Write (Owner and Security & Compliance). Deleting traces also needs the trace deletion entitlement.

Next steps

© 2026 ANTS Platform, Inc.Docs v1.0 · Last updated June 2026