Skip to main content

Traces

A trace records one run of the agent: its input and output, how long it took, the tokens it used, and its spans.

A platform-hosted Python agent sends traces when Auto instrumentation is on, which it is by default. To instrument an agent yourself, see AMP Instrumentation.

Open the Traces page​

  1. Open the agent from the breadcrumb at the top of the Console.
  2. In the left navigation, under Observability, click Traces.

View traces​

The Traces page lists the traces of the agent with the following:

ColumnDescription
StatusWhether the run succeeded or failed.
Trace IDThe ID of the trace.
ConversationThe conversation that the run belongs to.
InputThe input that the agent received.
OutputThe output that the agent returned.
Start TimeWhen the run started. The list is sorted by this column, latest first.
DurationHow long the run took.
TokensThe number of tokens that the run used.
SpansThe number of spans in the trace.
ScoreThe evaluation score of the trace. For more information, see Monitors.

To show or hide the Trace ID, Conversation, Input, and Output columns, click the columns icon and select or clear each column.

To reload the list, click the refresh icon. To download the list, click Export.

If no trace matches the selected time range and filters, the page shows No traces found!. Select a longer time range or change the filters.

Select the time range​

In the time range list, select one of the following: 10 minutes, 30 minutes, 1 hour, 6 hours, 12 hours, 1 day, or 7 days. To set a start and end time, select Custom time range.

The default time range is 1 hour.

Filter traces​

  • To show only failed or successful runs, click Errors or Success. To show all runs, click All.
  • To go to a specific trace, enter its ID in Go to trace ID.

Advanced filters​

  1. Click Advanced filters. The Advanced Filters panel opens.

  2. Set the filters as required:

    FilterDescriptionExample
    Latency at leastThe minimum duration of the run. Select Any, 1s, 5s, 10s, 30s, or Custom.5s
    Tokens at leastThe minimum number of tokens that the run used. Select Any, 1k, 5k, 10k, 50k, or Custom.1k
    Steps at leastThe minimum number of steps in the run. Select Any, 10, 20, 50, or Custom.10
    ModelThe model that the agent called.gpt-4o
    Tool calledA tool that the agent called.search_web
    Only traces where a tool call failedShows only the traces in which a tool call failed.
    MCP serverAn MCP server that the agent called.github
    Conversation IDThe ID of the conversation that the run belongs to.
    Only traces without a conversation IDShows only the traces that do not belong to a conversation.
  3. Click Filter.

To clear the advanced filters, click Reset.

Was this page helpful?