Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don’t recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
Prerequisites
- A Foundry project with at least one agent.
- Trace data collected for the target agent. If you haven’t set up tracing yet, see Set up tracing in Microsoft Foundry.
- Access to the Application Insights resource connected to your project. For background, see Azure Monitor Application Insights.
- A Log Analytics reader role to view traces, insights, and visualizations in Foundry.
Use cases
Open the Replay Panel
- Sign in to Microsoft Foundry.
- Navigate to the Traces page under your agent.
- Select a Conversation ID or Trace ID to open the Replay Panel.
Explore the Replay Panel views
The Replay Panel provides two complementary views of a trace. To switch between them, select the Trajectories or User tab at the top of the Replay Panel. In both views, you can select any span to inspect the step in the agent loop, including LLM invocations, tool execution, user prompts, sub-agent orchestrations and responses. You can also view raw metadata as JSON and see the results of any evaluations that ran as part of this conversation.Trajectories view

User view

Filter traces

- In the Replay Panel, select the Filter control.
- Choose one or more span types from the list to narrow the trace.
To search by span name, enter text in the Find in trace field.
Filter by token consumption
Filter spans by token usage level to identify hotspots or outliers.Replay a conversation

- Select Play in the Playthrough control at the bottom of the Replay Panel.
-
Use the playback controls as needed:
- Skip spans at any point to jump ahead in the interaction.
- Adjust playback speed (for example, 1x, 2x, or 4x) to move through long traces faster.
- Scrub to any point in the trace using the timeline scrubber to seek directly to a specific moment without replaying from the beginning.