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

📰
Top AI Papers on Hugging Face - 2026-07-15
Explore the top AI papers on Hugging Face, focusing on agent longevity, robotics, and efficient model training methods
Dev.to AI
📰
Integrating Open-Weight LLMs as Drop-In API Replacements: A Practical Guide
Learn to integrate open-weight LLMs as drop-in API replacements for a vendor-locked-in free solution
Dev.to AI
📰
How I Built a Multi-Page AI Website Generator for Nigerian SMBs — Architecture, LLM Prompting, and Lessons Learned
Learn how to build a multi-page AI website generator for small businesses using LLM prompting and key architectural decisions
Dev.to · Innocent Oyebode
📰
The Token Tax: Why You Are Paying for How AI “Thinks,” Not What It Writes
Understand the token tax and its impact on AI budgeting to optimize LLM API integration and reduce costs
Medium · 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 →