Using Tracing for Agent Debugging in Microsoft Foundry

AI-103 By islever Editorial Last updated

Short answer

D Tracing allows you to inspect the ordered sequence of LLM calls, tool invocations, and timing within individual agent runs to diagnose latency and correctness issues.

Question

You have a Microsoft Foundry project that contains a customer support agent. The agent calls an internal knowledge API tool before generating responses.
Users report the following issues:
Some requests take more than 15 seconds to complete.
Some responses are incorrect, even when the knowledge API returns the expected data.
You need to inspect individual agent runs to view the ordered sequence of large language model (LLM) calls, tool invocations, and timing information.
Which observability capability should you use?
  1. token usage
  2. monitoring
  3. safety metrics
  4. tracing Correct Answer

Key Takeaways

The main trap is confusing Monitoring with Tracing; while Monitoring gives aggregate health stats, only Tracing reveals the step-by-step execution timeline required to diagnose specific run failures.

Learn why Tracing is the correct observability capability for inspecting individual agent runs in Microsoft Foundry. It provides the ordered sequence of LLM calls and tool invocations needed to debug latency and accuracy issues.

Common mistake: Candidates often select Monitoring (B), assuming it covers all observability needs. However, Monitoring provides high-level aggregates (like total error rate), whereas the question demands a detailed, ordered sequence of events within a single run, which is the exclusive domain of Tracing.

Expert Analysis

The question requires identifying the specific observability capability in Microsoft Foundry that provides a granular, per-run view of execution steps. The key requirements are viewing the "ordered sequence" of LLM calls, tool invocations, and timing information for individual agent runs.

Tracing (Option D) is the correct choice because it captures detailed spans representing each step in the agent's execution flow. This includes the order of operations, which tools were called, how long each step took, and the inputs/outputs involved. This level of detail is essential for diagnosing latency issues (steps taking >15 seconds) and logical errors (incorrect responses despite correct API data). Comments confirm this, noting that tracing shows the "ordered span sequence" necessary to understand the agent's internal behavior.

Monitoring (Option B) typically refers to aggregate metrics like error rates, throughput, or overall latency across many runs, rather than the step-by-step breakdown of a single instance. Token usage (Option A) tracks consumption costs but not the execution path or timing of specific tool calls. Safety metrics (Option C) focus on content filtering and responsible AI checks, not operational debugging of logic or performance.

Exam Strategy

When an exam question asks for 'ordered sequence', 'step-by-step', or 'individual run details' related to AI agents, always choose Tracing. Distinguish this from Monitoring, which deals with aggregates, and Safety Metrics, which deal with compliance. Look for keywords like 'span sequence' or 'timing information' as strong indicators for Tracing.

Frequently Asked Questions

What is the difference between Monitoring and Tracing in Microsoft Foundry?

Monitoring provides aggregate metrics like error rates and average latency across many runs. Tracing provides detailed, step-by-step logs of a single run, including the order of LLM calls and tool invocations.

How does Tracing help with incorrect responses?

Tracing shows the exact input sent to each tool and the output received. If a response is incorrect despite valid API data, tracing lets you see if the LLM misinterpreted the tool output or if a subsequent step failed.

More AI-103 FAQ →

Community Votes

D
100%

100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 2 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 2

  1. RICHARDALEX007 👍 1 Answered D
    Tracing shows the ordered span sequence of LLM calls, tool invocations, and timing within a single run, which is exactly what is needed to diagnose latency and incorrect-despite-correct-data behavior. Token usage (A), monitoring (B), and safety metrics (C) are aggregate signals, not per-run ordered traces.
  2. AgentIsOnline 👍 1 Answered D
    Tracing is capability that would allow for viewing the ordered span sequence of LLM calls, tool invocations, and timing within a single run.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AI-103 Questions

Access 88 questions with complete answers and detailed explanations.

View Full AI-103 Practice Test →

← Back to AI-103 Study Guide