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
- Open the agent from the breadcrumb at the top of the Console.
- In the left navigation, under Observability, click Traces.
View traces
The Traces page lists the traces of the agent with the following:
| Column | Description |
|---|---|
| Status | Whether the run succeeded or failed. |
| Trace ID | The ID of the trace. |
| Conversation | The conversation that the run belongs to. |
| Input | The input that the agent received. |
| Output | The output that the agent returned. |
| Start Time | When the run started. The list is sorted by this column, latest first. |
| Duration | How long the run took. |
| Tokens | The number of tokens that the run used. |
| Spans | The number of spans in the trace. |
| Score | The 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
-
Click Advanced filters. The Advanced Filters panel opens.
-
Set the filters as required:
Filter Description Example Latency at least The minimum duration of the run. Select Any, 1s, 5s, 10s, 30s, or Custom. 5sTokens at least The minimum number of tokens that the run used. Select Any, 1k, 5k, 10k, 50k, or Custom. 1kSteps at least The minimum number of steps in the run. Select Any, 10, 20, 50, or Custom. 10Model The model that the agent called. gpt-4oTool called A tool that the agent called. search_webOnly traces where a tool call failed Shows only the traces in which a tool call failed. MCP server An MCP server that the agent called. githubConversation ID The ID of the conversation that the run belongs to. Only traces without a conversation ID Shows only the traces that do not belong to a conversation. -
Click Filter.
To clear the advanced filters, click Reset.
Was this page helpful?