ai ml4 min read

Inside LLM Calls: GenAI Observability with OpenTelemetry

6 similar posts
  • OpenTelemetry
  • VS Code Copilot
  • Aspire Dashboard
  • OpenAI Codex
  • Claude Code

AI Summary

This article explains how to use OpenTelemetry and its Generative AI semantic conventions to monitor and debug LLM applications. It covers exporting telemetry from tools like VS Code Copilot, configuring content capture for prompts and tool calls, and visualizing traces, metrics, and events using the Aspire Dashboard.

Key Takeaways

  • OpenTelemetry standardizes GenAI telemetry recording, including models, token counts, and tool executions.
  • By default, sensitive prompt and response content is omitted; enabling content capture exposes detailed attributes like system instructions and tool arguments.
  • Aspire Dashboard provides a local, OTLP-compatible UI to inspect traces, spans, and metrics prefixed with gen_ai.

Why it matters

As AI agents and LLM-powered applications become complex, understanding token usage, latency bottlenecks, and tool execution failures is critical for performance and cost management.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.