← back

📷 "Quantum Computing for Google Goggles" by jurvetson is licensed under CC BY 2.0. To view a copy of this license, visit https://creativecommons.org/licenses/by/2.0/.

GenAI Observability with OpenTelemetry 2026: Peering into the AI Black Box

15 August 2026 · 4 min · Martin Jochum #KI#DevOps#OpenTelemetry#Observability#GenAI#Monitoring

AI applications are no longer in the experimental stage: they are running in production, controlling critical business processes, and becoming increasingly complex. An AI agent needs 45 seconds for a simple question – was the prompt too long? Did a tool call fail? Or is the model stuck in a retry loop? Without transparency into the inner workings of this black box, any troubleshooting remains pure speculation. In 2026, OpenTelemetry with its new GenAI Semantic Conventions creates exactly this transparency – and makes observability the standard for modern AI workloads.

Why traditional monitoring fails with AI

Conventional Application Performance Monitoring (APM) relies on standardized metrics such as CPU utilization, memory consumption, or latency. This falls short for AI applications: a faulty response from a Large Language Model (LLM) does not manifest as higher CPU load, but in meaningless or even dangerous outputs. Added to this are specific AI costs – every LLM API call costs money, and token counts add up quickly.

As the IBM Observability Report notes in early 2026, increasing AI integration is forcing organizations to make their observability strategies “smarter, more cost-effective, and compatible with open standards” (IBM, January 2026). The Elastic survey of 500 IT decision-makers shows: 85% of organizations are already using GenAI for observability – within two years, this is expected to be 98% (Elastic, February 2026).

GenAI Semantic Conventions: The new language of AI observability

The OpenTelemetry community has adopted Semantic Conventions specifically for generative AI, which standardize how LLM calls, tool interactions, and token consumption are recorded. James Newton-King from Microsoft describes in a recent blog post on opentelemetry.io how GenAI telemetry is exported from an LLM application: Each invoke_agent call generates a trace with child spans for chat and tool calls – fully viewable in any OTLP-compatible backend (OpenTelemetry, May 2026).

The most important standardized attributes are:

  • gen_ai.request.model – which model was called (e.g., gpt-4o)
  • gen_ai.usage.input_tokens / gen_ai.usage.output_tokens – exact token count per call
  • gen_ai.response.finish_reasons – why the model ended the output (stop, tool_calls, etc.)
  • gen_ai.system_instructions, gen_ai.input.messages and gen_ai.output.messages – complete prompt and response content (optional, sensitive data requires conscious activation)

With these attributes, an opaque LLM call becomes a traceable, structured trace – including tool calls, system prompts, and conversation history.

AI observes AI: The concept of extended observability

The IBM expertise describes another important trend: AI agents specialized in observability – for example, an agent that analyzes logs, extracts patterns, and detects anomalies in order to interact with other agents (IBM, January 2026). Rootly summarizes the development for 2026 in five trends: Predictive Analytics, Unified Observability Platforms, Generative AI Copilots, the central role of OpenTelemetry, and the principle “AI works as a copilot, not a replacement” (Rootly, June 2026).

Concretely, this means: Instead of rigid alarm thresholds (“CPU > 80% → alarm”), AI-powered observability platforms learn the normal behavior of a system and detect deviations before they lead to failures. This drastically reduces the number of false alarms and accelerates root cause analysis (Rootly, June 2026).

OpenTelemetry in practice: How GenAI tracing works

The practical implementation is surprisingly simple. VS Code Copilot, OpenAI Codex, and Claude Code now all support the export of OTel telemetry (OpenTelemetry, May 2026). For your own applications, a few lines of configuration are sufficient:

# Example: Exporting GenAI telemetry with OpenTelemetry
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.http import OTLPSpanExporter

tracer = trace.get_tracer("my-ai-app")
with tracer.start_as_current_span("llm_call") as span:
    span.set_attribute("gen_ai.request.model", "gpt-4o")
    span.set_attribute("gen_ai.usage.input_tokens", 1250)
    span.set_attribute("gen_ai.usage.output_tokens", 340)

For visualization, the open-source dashboard Aspire Dashboard from Microsoft is suitable – a free, local telemetry viewer that starts via Docker container and receives OTLP data directly (OpenTelemetry, May 2026). This allows GenAI traces, including chat history and tool calls, to be viewed in a clear UI without data having to leave your own data center.

Conclusion

GenAI observability with OpenTelemetry is no longer a future topic in 2026, but a productive reality. The Semantic Conventions create a vendor-neutral standard for monitoring LLM and agent workloads – comparable to what OpenTelemetry has already achieved for classic microservices. Anyone operating AI applications should start instrumentation this year: The data quality of today determines whether AI will prove to be a costly black box or a transparently manageable system months later.

Sources

🌐 Machine-translated from the German original, editorially reviewed. 🤖 Written with AI assistance.