---
title: 'Why is my agent doing that? OTel 101: Live agent instrumentation'
description: >-
  Too often, agent debugging comes down to print statements. We add
  OpenTelemetry to a plain agent, walk through the resulting trace, and see it
  come together in Pydantic Logfire.
date: '2026-09-09'
dateDisplay: 'Sep 9, 2026'
duration: 30 min
status: past
tags:
  - Logfire
speakers:
  - Alex Cherednychenko
canonical: 'https://pydantic.dev/events/otel-101-agent'
---

> Markdown version of [Why is my agent doing that? OTel 101: Live agent instrumentation](https://pydantic.dev/events/otel-101-agent) — the canonical HTML page.
>
> Sep 9, 2026 · 30 min · Speakers: [Alex Cherednychenko](https://pydantic.dev/authors/alex-cherednychenko.md)
>
> All events: [/events.md](https://pydantic.dev/events.md) · Site index: [/llms.txt](https://pydantic.dev/llms.txt)

---

# Why is my agent doing that? OTel 101: Live agent instrumentation

Too often, agent debugging comes down to print statements. We add OpenTelemetry to a plain agent, walk through the resulting trace, and see it come together in Pydantic Logfire.

## What you'll learn

- What OpenTelemetry is, and why it's the observability standard for AI
- How to instrument an agent, and what's worth capturing
- How to trace a bad run back to its cause
- How this scales out to real-world deployments

## About

Too often, agent debugging still comes down to print statements and logs. The agent is the one piece of the stack nobody can see into, and the one piece that fails in ways nothing else does. It doesn't have to stay that way. OpenTelemetry already traces the rest of your stack, and it works for agents too.

In this session we add OpenTelemetry to a plain agent and walk through the resulting trace: which spans matter, which are noise, and how a specific span ties back to why the agent did what it did. Then we use [Pydantic Logfire](https://pydantic.dev/logfire) to see what your agent is doing once it's running in production. No prior OpenTelemetry experience needed.

A 30-minute session, with questions at the end.

## Recording

Watch the recording on the event page: https://pydantic.dev/events/otel-101-agent
