OpenTelemetry for AI Observability: What It Covers and Where It Stops

A practitioner's guide to using OpenTelemetry as your AI telemetry foundation, and understanding where purpose-built evaluation takes over.
Surreal painting of orange beam striking planet surface

Key Takeaways

  • OpenTelemetry is the right telemetry standard for AI observability because it provides vendor-neutral distributed tracing, metrics, and logs across LLM calls, agent workflows, and traditional infrastructure.
  • The GenAI semantic conventions now standardize how teams capture model attributes, token usage, and latency, but they do not cover output evaluation, safety scoring, or content quality assessment.
  • The GenAI semantic conventions are at Development status, so instrumentation should be structured to absorb attribute changes.
  • Production AI observability requires OpenTelemetry as the data plane paired with a purpose-built evaluation layer that scores outputs for faithfulness, toxicity, and policy compliance without relying on external API calls.
  • Instrumenting agents in production requires explicit handling of multi-turn session context, prompt and completion capture governance, span volume, and evaluation latency.

The Problem in Production

A financial services team deploys an agentic workflow to automate research summaries for portfolio managers. The system chains a retrieval agent, a summarization LLM, and a compliance-check agent. The infrastructure team instruments it with their existing APM stack. Within a week, they can see latency percentiles and error rates. They cannot see anything else that matters.

They cannot trace why the retrieval agent chose one data source over another, determine whether the summarization model hallucinated a statistic, or verify that the compliance agent actually enforced their internal policy on forward-looking statements. The APM dashboards show green, yet the compliance team finds three violations in a single morning.

This is the instrumentation blind spot. Traditional observability captures infrastructure signals. It misses the decision lineage of AI workloads: prompt construction, model selection, retrieval quality, and output evaluation. These are the signals that determine whether an agent observability strategy is producing trustworthy results.

The fragmentation compounds the problem. Teams end up with separate dashboards for infrastructure metrics, proprietary LLM traces from one vendor, and evaluation results from yet another tool. No single trace connects a user request through the full agentic hierarchy (the five levels of application, session, agent, trace, and span). When something goes wrong, root-cause analysis requires correlating timestamps across three systems manually. The challenge of LLM observability extends well beyond what traditional APM was designed to handle.

The requirement that follows is a single telemetry standard that unifies these signals into one trace.

Why OpenTelemetry Solves AI Telemetry Fragmentation

OpenTelemetry solves the fragmentation problem at the telemetry layer. It provides a vendor-neutral instrumentation standard that lets teams capture traces, metrics, and logs from AI workloads using the same framework they already use for traditional infrastructure. The evolving standards around AI agent observability are making this increasingly practical.

Three properties make it the right foundation for LLM observability.

  1. Vendor neutrality: Instrument once, export to any backend. This matters for AI because the observability vendor landscape is shifting rapidly. Teams evaluating platforms today do not want to reinstrument when they switch backends in six months. OpenTelemetry decouples instrumentation from the backend entirely.
  2. Distributed tracing across the agentic hierarchy: OpenTelemetry traces can capture the full call graph from a user request through an orchestrator, sub-agents, tool calls, and LLM invocations. Each step becomes a span with structured attributes. As a result, every decision in the agentic hierarchy is recorded in a format that any OTel-compatible backend can ingest [1].
  3. Unified pipeline: The OTel Collector [2] handles metrics, traces, and logs in a single pipeline. This enables correlation between AI-specific signals and traditional infrastructure signals. A latency spike in an LLM call can be traced back to a network partition or a rate limit from the model provider, all within the same trace context.

Auto-instrumentation libraries accelerate adoption. Open-source auto-instrumentation libraries, along with framework-native support in CrewAI and LangGraph, let teams add OpenTelemetry to AI applications with minimal code changes. The following example shows a basic OTel-instrumented LLM call with GenAI semantic attributes:‍

from opentelemetry import trace
tracer = trace.get_tracer("ai-research-agent")
with tracer.start_as_current_span("llm.chat") as span:
    span.set_attribute("gen_ai.provider.name", "openai")
    span.set_attribute("gen_ai.request.model", "gpt-4o")
    span.set_attribute("gen_ai.request.max_tokens", 2048)
    span.set_attribute("gen_ai.request.temperature", 0.2)
    response = client.chat.completions.create(
        model="gpt-4o",
        messages=messages,
        max_tokens=2048,
        temperature=0.2,
    )
    span.set_attribute("gen_ai.usage.input_tokens", response.usage.prompt_tokens)
    span.set_attribute("gen_ai.usage.output_tokens", response.usage.completion_tokens)
    span.set_attribute("gen_ai.response.finish_reasons", [response.choices[0].finish_reason])

What the GenAI Semantic Conventions Standardize

The OpenTelemetry GenAI SIG has defined semantic conventions [3] that standardize how teams record AI-specific telemetry. The key attributes include:

  • gen_ai.provider.name: The AI provider (e.g., openai, anthropic, aws.bedrock)
  • gen_ai.request.model: The specific model invoked
  • gen_ai.usage.input_tokens / gen_ai.usage.output_tokens: Token consumption per call [4]
  • gen_ai.response.finish_reasons: Why the model stopped generating (e.g., stop, length, tool_calls)

These conventions enable cross-vendor comparison. Switching from one model provider to another does not require reinstrumentation. Attribute names, trace structure, and dashboards remain consistent across providers.

The GenAI semantic conventions are at Development status, so attribute names and requirements can still change as the GenAI SIG incorporates feedback from production deployments. Teams can build on them today if their instrumentation is structured to absorb those changes.

Where OpenTelemetry Stops

OpenTelemetry captures what happened. It does not assess whether what happened was good. This is the fundamental boundary between telemetry and evaluation, and it is where most production AI observability architectures fall short.

Five specific areas sit above what OpenTelemetry covers:

  1. Output evaluation: Was the response faithful to the retrieved context? Was it hallucinated? OpenTelemetry has no concept of faithfulness or groundedness scoring. A span can record that an LLM returned 1,200 tokens in 850ms. It cannot record that those tokens contradicted the source documents.
  2. Safety and policy compliance: Was the response toxic? Did it expose PII? OpenTelemetry traces can capture inputs and outputs when configured to do so. Scoring those outputs for safety, toxicity, or regulatory compliance requires a separate evaluation layer that understands content semantics.
  3. Content quality at the span level: OpenTelemetry can record that an LLM call completed successfully. It cannot indicate that the output was irrelevant to the user's question. Relevance, coherence, and completeness are evaluation judgments, not telemetry signals.
  4. Guardrail enforcement: OpenTelemetry is passive instrumentation. It records but does not intercept, redact, or block. Checks on the request before the model is invoked and checks on the response before it reaches the user or a downstream system, each applying an allow, block, or redact action, require active middleware in the request path. Telemetry alone cannot enforce policy.
  5. Cost attribution beyond tokens: Token counts are necessary but not sufficient for enterprise cost management. OpenTelemetry traces do not surface the Evaluation Trust Tax, the per-call cost incurred when evaluation runs against an external LLM and lands on the team's LLM bill. Teams can estimate that cost for their own workloads with the Evaluation TCO Calculator; results vary by model, deployment, and traffic.

OpenTelemetry is the data plane, capturing structured telemetry across the full agentic hierarchy. Production AI observability also requires a control plane: a layer that ingests that telemetry and applies evaluation, scoring, and enforcement on top of it. Teams weighing the build vs. buy decision for this layer should consider what it takes to maintain evaluation infrastructure at scale.

The Fiddler AI Observability and Security platform ingests OpenTelemetry telemetry via its OTel integration and layers batteries-included Fiddler Centor Models on top for in-environment evaluation. Centor Models run in-environment, scoring prompts and responses for faithfulness, toxicity, and policy compliance. Centor Models do not sample, and their costs are a step function, compared to external LLM judge costs that grow linearly with every evaluation.

Four Production Pitfalls When Instrumenting AI with OpenTelemetry

Deploying OpenTelemetry for AI workloads introduces failure modes that do not exist in traditional microservice tracing. Four patterns appear consistently in production.

  • Context loss in multi-turn conversations: OpenTelemetry trace context propagation assumes request-response patterns. Multi-turn agent conversations can lose parent context if sessions are not explicitly managed. When a user interacts with an agent across multiple turns, each turn may start a new trace unless the application explicitly propagates a session-level context. This makes it impossible to reconstruct the full conversation flow from traces alone.
  • Prompt and completion capture creates data governance risk: Capturing full prompts and completions in OpenTelemetry spans is powerful for debugging. It also creates data governance exposure. Prompts may contain customer data, PII, or proprietary information. Before enabling content capture, teams must implement sampling, redaction, and retention policies. The configuration is straightforward but the implications are significant [5]:
# Enables full prompt/completion capture in OTel GenAI instrumentation.
# WARNING: Review data governance policies before enabling in production.
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
# Recommended: pair with a collector processor that redacts sensitive fields
# before export to the observability backend.
  • Span explosion in agentic hierarchies: A single user request to a multi-agent system can generate hundreds of spans. An orchestrator calls three sub-agents; each sub-agent makes multiple tool calls and LLM invocations; each invocation generates its own child spans. Without tail-based sampling or span limits, this overwhelms backends and budgets. A practical starting configuration applies head-based sampling to high-volume endpoints and uses tail-based sampling to retain 100% of error traces.
  • Evaluation latency versus trace latency: If evaluation runs synchronously in the request path, it adds latency to every response. If evaluation runs asynchronously, the trace closes before evaluation results are available. Teams must architect for this tradeoff explicitly. Fiddler Guardrails runs checks inline on the request and response path with under 80ms response time, which keeps synchronous checks practical.

What Becomes Possible When OpenTelemetry and Evaluation Work Together

With OpenTelemetry as the telemetry foundation and purpose-built evaluation layered on top, a new architectural pattern becomes available.

  • Unified trace from request to evaluation: A single trace connects the user request through the agentic hierarchy through every evaluation result. This gives teams full visibility from request through evaluation to root cause. When a healthcare AI assistant produces an inaccurate summary, the team traces from the user query through retrieval, generation, and the evaluation score that flagged the output, all within a single span hierarchy. Agentic Observability platforms make this possible by connecting span-level telemetry to end-to-end observability across the full lifecycle.
  • Cross-framework portability: Teams can swap agent frameworks without losing observability coverage [6]. Moving from LangGraph to CrewAI to a custom orchestrator requires changing instrumentation libraries, not rearchitecting the observability pipeline. The telemetry standard stays the same.
  • Enterprise governance without data exposure: With structured telemetry and in-environment evaluation, teams can generate audit evidence without shipping prompt data to external APIs. That matters for regulated industries, where financial services firms operating under SR 26-2 and healthcare organizations subject to HIPAA need evaluation results that stay inside their environment. Alignment and evidence generation support that work but are not a guarantee of legal compliance.
  • What remains unsolved: Real-time evaluation of multi-modal outputs (images, audio, video) has no standardized telemetry convention. Cost attribution across compound AI systems, where a single user request triggers multiple models and tools with different pricing, remains fragmented. Standardized conventions for embedding evaluation results directly into OpenTelemetry spans are still in early discussion within the GenAI SIG. These are active areas of development that will shape the next generation of AI observability.

The Telemetry Standard Meets the Evaluation Layer

Return to the financial services team from the opening. With OpenTelemetry capturing structured telemetry across their agentic hierarchy and purpose-built evaluation scoring every output, they can trace every agent decision, identify the exact span where a compliance violation originated, and verify that guardrails enforced their policies. The three violations their compliance team found manually are now flagged automatically, in real time, within the same trace.

Putting telemetry and quality scores in the same trace is a new architectural pattern for production AI: each span's output carries its evaluation score alongside its telemetry, so a team can follow a request through the agentic hierarchy and trace a failing output back to the span that produced it. Teams that adopt it now can scale agent complexity without giving up visibility or governance, because observability must precede autonomy; no agent gains more autonomy than the organization can trace and evaluate.

To see how Fiddler connects OpenTelemetry traces to in-environment evaluation, request a demo.

References

[1] Cisco Outshift, “AI Observability in Multi-Agent Systems Using OpenTelemetry,” Cisco Outshift Blog, 2025. Accessed: Oct. 20, 2026. [Online]. Available: https://outshift.cisco.com/blog/ai-ml/ai-observability-multi-agent-systems-opentelemetry

[2] OpenTelemetry, “OpenTelemetry Collector,” OpenTelemetry Documentation. Accessed: Oct. 20, 2026. [Online]. Available: https://opentelemetry.io/docs/collector/

[3] OpenTelemetry, “GenAI Semantic Conventions: Spans,” open-telemetry/semantic-conventions-genai, GitHub, Development status. Accessed: Oct. 20, 2026. [Online]. Available: https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-spans.md

[4] OpenTelemetry, “GenAI Semantic Conventions: Metrics,” open-telemetry/semantic-conventions-genai, GitHub, Development status. Accessed: Oct. 20, 2026. [Online]. Available: https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-metrics.md

[5] OpenTelemetry, “OpenTelemetry OpenAI Instrumentation (opentelemetry-instrumentation-openai-v2),” open-telemetry/opentelemetry-python-contrib, GitHub. Accessed: Oct. 20, 2026. [Online]. Available: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation-genai/opentelemetry-instrumentation-openai-v2

[6] Microsoft, “Azure AI Foundry: Advancing OpenTelemetry and Delivering Unified Multi-Agent Observability,” Microsoft Tech Community, 2025. Accessed: Oct. 20, 2026. [Online]. Available: https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/azure-ai-foundry-advancing-opentelemetry-and-delivering-unified-multi-agent-obse/4456039

[7] OpenTelemetry, “OTLP Specification,” OpenTelemetry Documentation. Accessed: Oct. 20, 2026. [Online]. Available: https://opentelemetry.io/docs/specs/otlp/

Frequently Asked Questions

How are OpenAI and other LLM SDK calls auto-instrumented with OpenTelemetry?

Open-source GenAI instrumentation libraries wrap the LLM SDK client, so each call emits a span carrying gen_ai attributes such as gen_ai.request.model, gen_ai.usage.input_tokens, and gen_ai.response.finish_reasons without hand-written span code [5].

How are LangGraph and CrewAI agents traced?

LangGraph and CrewAI include framework-native OpenTelemetry support that emits agent, tool, and LLM spans under a single trace, so one user request appears as one connected call graph.

How does OpenTelemetry differ from Prometheus?

Prometheus is an open-source time-series database that scrapes metrics from instrumented targets. OpenTelemetry is a vendor-neutral standard and SDK for producing traces, metrics, and logs, and it can export metrics to Prometheus, so a team can instrument with OpenTelemetry and still send metrics to an existing Prometheus deployment.

Does OpenTelemetry cost money, and which backends can receive GenAI traces?

OpenTelemetry is free and open source, so its costs come from the backend that receives the telemetry and the storage that telemetry consumes. GenAI traces export over the OpenTelemetry Protocol (OTLP) [7] to any compatible backend, such as Jaeger or a commercial observability platform, including Fiddler through its OTel integration.