Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hello Leon Kannanovich,
Welcome to Microsoft Q&A and Thank you for reaching out.
Agent tracing in Azure AI Foundry is designed to help observe, understand and troubleshoot agent behaviour. It provides helpful visibility into how an agent run executes, such as the sequence of steps, latency and high‑level tool usage. However, traces are not intended to function as structured datasets for evaluation or long‑term data analysis.
Trace data cannot be used as an evaluation dataset as the purpose of agent traces using the traces view in Azure AI Foundry is to focus on debugging agent runs,monitoring performance and reliability and inspecting execution flow at a session level
As a result, traces should not be considered a canonical data export layer, since they are not designed to support full replay of agent executions and therefore cannot reliably capture complete interaction flows. Because of these limitations, traces should not be treated as ground-truth datasets for evaluation purposes.
When trace data flows into Azure Application Insights, it is distributed across multiple tables—such as traces, customEvents, and dependencies , which results in only partial information being visible in any single query rather than a complete, unified view of the trace.
The best-practice architecture is to use a dual logging approach, where observability logs are clearly separated from evaluation data. In this setup, agent execution sends telemetry and debugging information to Azure Application Insights for monitoring purposes, while simultaneously writing structured dataset logs to a storage system for use in evaluation workflows.
Please ensure that the structured dataset logging captures
- User input
- Model output
- Tool names
- Tool arguments
- Tool responses
- Timestamps and correlation identifiers
With the recommended storage options that include:
- Azure Blob Storage
- Azure Data Lake
- Cosmos DB
Please check if the following troubleshooting steps help:
- Inspect raw telemetry
traces | take 10 | project customDimensions - Check additional tables - customEvents and dependencies
- Review sampling behavior
union traces, customEvents | summarize count() by itemType - Confirm instrumentation by ensuring OpenTelemetry instrumentation is enabled and verbose logging is configured where applicable
- Review payload size for large tool inputs or outputs may be truncated due to telemetry limits
References:
Set Up Tracing for AI Agents in Microsoft Foundry - Microsoft Foundry | Microsoft Learn
Agent tracing in Microsoft Foundry (preview) - Microsoft Foundry | Microsoft Learn
Application Insights telemetry data model - Azure Monitor | Microsoft Learn
Thank you!
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.