How To Debug AI Agents: Tracing, Observability & Evals

Arize AI · Intermediate ·🧠 Large Language Models ·1mo ago

Key Takeaways

Walks through debugging AI agents using tracing, observability, and evaluations, with a focus on production visibility

Original Description

When you build an AI agent using instructions, LLMs, and tools, it quickly becomes a black box. Your traditional unit tests pass, yet silent failures sneak straight through to your users in production. In this technical walkthrough, we break down how to achieve full production visibility using open-source observability, agent tracing, and non-deterministic evaluations (evals). Using a real-world procurement-approval agent built with the Microsoft Agent Framework and Azure OpenAI on Microsoft Foundry, you’ll discover how to transition from guessing to data-driven orchestration. Learn how to: Implement OpenInference: Extend standard OpenTelemetry semantic conventions to capture AI-specific data like tool calls, tokens, prompt variations, and exact costs. Visualize with Phoenix: Stream live traces into the free, open-source AI observability platform to track complex multi-turn workflows. Deploy LLM-as-a-Judge: Construct robust grounding checks using an AI judge to evaluate agent decisions at scale when manual human validation is impossible. Automate Self-Improving Loops: Leverage evaluation harnesses alongside coding agents (like Claude Code and Copilot CLI) to systematically iterate on prompts and watch your pass rate climb from 40% to 90%. Chapters: 00:00 Why your AI agent is a black box 00:26 The example: a procurement agent in Microsoft Agent Framework 02:17 Why OpenTelemetry alone isn't enough for AI 02:49 OpenInference: OTEL semantic conventions for agents 04:43 Reading a real agent trace in Phoenix 08:40 The harder question: is your agent actually working? 10:43 Evals 101: code evals vs. LLM-as-a-judge 12:10 Building a grounding-check judge 14:00 Reading the eval results (we only pass 40% of the time) 15:48 Experiments: swap the model, watch the score change 17:21 Phoenix AI skills and self-improving agent loops Resources: 🔬 Phoenix (open source): https://phoenix.arize.com 🔗 Arize AX: https://arize.com 📖 OpenInference: https://github.com/Ar
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related Reads

📰
OWASP LLM05:2025 : Improper Output Handling — When the Model’s Response Becomes the Attack
Learn about OWASP LLM05:2025, a security risk related to improper output handling in LLMs, and how to mitigate it
Medium · LLM
📰
AI and UX Opinion — Episode 006
Learn about the current state of AI and UX design, focusing on prompts, and why it matters for designing effective user experiences
Medium · UX Design
📰
The LLM Thought a Dollar Was Still ₦450: Building a Car Pricing Engine for a Market With No Data
Learn how to build a car pricing engine using LLMs for a market with no data, and understand the challenges of working with outdated currency exchange rates
Dev.to · Chichebe John
📰
Cross-Modal Knowledge Distillation for precision oncology clinical workflows under multi-jurisdictional compliance
Apply cross-modal knowledge distillation to improve precision oncology clinical workflows while ensuring multi-jurisdictional compliance
Dev.to AI

Chapters (11)

Why your AI agent is a black box
0:26 The example: a procurement agent in Microsoft Agent Framework
2:17 Why OpenTelemetry alone isn't enough for AI
2:49 OpenInference: OTEL semantic conventions for agents
4:43 Reading a real agent trace in Phoenix
8:40 The harder question: is your agent actually working?
10:43 Evals 101: code evals vs. LLM-as-a-judge
12:10 Building a grounding-check judge
14:00 Reading the eval results (we only pass 40% of the time)
15:48 Experiments: swap the model, watch the score change
17:21 Phoenix AI skills and self-improving agent loops
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch →