Tracing Agent Sessions with OpenTelemetry & Aspire
Maddy Montaquila demos what’s going on behind the scenes with Agent Sessions using OpenTelemetry and .NET Aspire in VS Code.
Overview
The video walks through how Agent Sessions in VS Code can emit telemetry via OpenTelemetry and how that data can be explored using the .NET Aspire Dashboard.
Intro: AI Agents in VS Code
- Introduces the concept of AI Agents in VS Code.
- Frames the rest of the demo around tracing and understanding agent session activity.
OpenTelemetry
- Covers OpenTelemetry as the mechanism used for tracing.
- Points viewers to OpenTelemetry resources, including language-specific documentation:
.NET Aspire and the Aspire Dashboard
- Introduces .NET Aspire in the context of observability.
- Highlights the Aspire Dashboard as the place to view traces/telemetry:
Demo: Aspire repo in VS Code
- Demonstrates working with an Aspire repository inside VS Code.
Demo: Adding VS Code commands to open the dashboard
- Shows adding VS Code commands that open the Aspire Dashboard.
- Focus is on making it easy to jump from the editor into the observability view while working with agent sessions.
Summary
- Recaps how OpenTelemetry and .NET Aspire fit together for tracing Agent Sessions in VS Code.
Links
- OpenTelemetry: https://opentelemetry.io/
- OpenTelemetry language docs: https://opentelemetry.io/docs/languages
- Aspire Dashboard: https://aspire.dev/dashboard
- Aspire.Dev YouTube channel: https://www.youtube.com/@UCW_UJkc7RhM_NPcDXnOCfrQ