Inside the LLM Call: GenAI Observability with OpenTelemetry
13 similar posts
- VS Code Copilot
- OpenAI Codex
- Claude Code
- Aspire Dashboard
- OpenTelemetry
AI Summary
This article explains how to use OpenTelemetry Semantic Conventions for Generative AI to monitor and debug LLM calls, tool invocations, and token exchanges in AI-powered applications. It covers exporting telemetry from developer tools like VS Code Copilot, configuring content capture for prompts and responses, collecting data via an OTLP-compatible backend like the Aspire Dashboard, and exploring traces, span attributes, and metrics.
Key Takeaways
- OpenTelemetry Semantic Conventions standardize GenAI operations including model names, token counts, prompts, and tool calls.
- Tools like VS Code Copilot, OpenAI Codex, and Claude Code can emit traces, metrics, and events via OTel.
- The Aspire Dashboard provides a local, OTLP-compatible backend for viewing traces, metrics, and structured logs without a cloud account.
Why it matters
Without proper observability, diagnosing latency bottlenecks, unexpected retry loops, or expensive token consumption in LLM applications requires guesswork. OpenTelemetry standardizes GenAI operations, giving engineers clear visibility into traces, metrics, and token usage.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.