Back to stack index

Observability

OpenTelemetry

Standard traces feeding LLM observability tools.

Short answer

OpenTelemetry is the open-source standard for collecting traces, metrics and logs from software, run by the Cloud Native Computing Foundation. For AI apps, it defines GenAI semantic conventions: standard names for attributes such as the model, token counts, operation type and agent steps, so any tool can read traces from any app. Those conventions are still experimental. On June 12, 2026, they were moved out of the core semantic-conventions repository into a dedicated semantic-conventions-genai repository, with the core baseline at version 1.42.0. In our directory, OpenLLMetry, OpenLIT, Helicone and Arize Phoenix build on or accept OpenTelemetry. The benefit is portability: instrument your app once and send traces to Langfuse, Phoenix, Datadog, Grafana, Honeycomb or any backend that accepts the OTLP protocol, and switch later without changing application code. OpenTelemetry is free and open source.

GenAI conventions status
Experimental, not stable
OpenTelemetry docs
June 12, 2026
Moved to dedicated semantic-conventions-genai repository
OpenTelemetry GitHub
Core baseline at move
Semantic conventions v1.42.0
OpenTelemetry GitHub
Directory projects
OpenLLMetry, OpenLIT, Helicone, Arize Phoenix
Project docs

Updated October 21, 2026How we evaluate tools

Official site

Directory projects (4)

  • OpenLLMetry

    OpenTelemetry instrumentation tailored to LLM and vector DB calls.

  • OpenLIT

    Telemetry for GenAI apps with dashboards for cost and quality drift.

  • Helicone

    Logging proxy that surfaces cost, latency, and error rates per route.

  • Arize Phoenix

    Open tracing and evaluation toolkit for debugging retrieval and generation.

OpenTelemetry for AI apps: GenAI semantic conventions, OpenLLMetry, OpenLIT, Helicone and Arize Phoenix in 2026

What OpenTelemetry is

OpenTelemetry, often shortened to OTel, formed in 2019 from the merger of OpenTracing and OpenCensus. It provides APIs and SDKs for most languages, a wire protocol called OTLP, and the OpenTelemetry Collector, a service that receives, processes and forwards telemetry. It is the second most active CNCF project after Kubernetes, and almost every monitoring vendor accepts its data.

For AI apps, the important part is tracing. A trace is a tree of spans: one for the incoming request, children for retrieval, each model call, each tool call, and so on. With standard attribute names, any backend knows which spans are model calls and how many tokens they used.

Which directory projects use it

ProjectRelationship to OpenTelemetry
OpenLLMetryInstrumentation libraries for model SDKs, frameworks and vector databases that emit OTel traces
OpenLITOTel-native SDK and collector distribution plus a dashboard, with GPU metrics
HeliconeProxy-based logging that also accepts OpenTelemetry traces from instrumented apps
Arize PhoenixTracing and evaluation app built on OpenTelemetry and the OpenInference conventions

Langfuse also accepts OTLP traces, as do Datadog, Grafana Cloud, Honeycomb, New Relic, Dynatrace and Elastic.

The GenAI semantic conventions

The GenAI special interest group defines how AI operations appear in telemetry:

AreaExamples
Model spansgen_ai.operation.name (chat, embeddings, execute_tool), gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model
Usagegen_ai.usage.input_tokens, gen_ai.usage.output_tokens
Request settingsTemperature, max tokens, top_p
AgentsSpans for agent creation and invocation, agent name and ID
ToolsTool name, call ID and type
ContentInput and output messages, recorded only when enabled
MetricsToken usage and operation duration histograms

Status in 2026

The conventions remain experimental. On June 12, 2026, they were deprecated in the core semantic-conventions repository, whose baseline was v1.42.0 at the time, and moved to the dedicated semantic-conventions-genai repository. The project's history notes that earlier baselines never implied GenAI stability. In practice this means:

  • Attribute names may still change before a stable release.
  • Libraries offer an opt-in setting, such as the OTEL_SEMCONV_STABILITY_OPT_IN environment variable, to emit the latest experimental names.
  • Backends often accept several versions and map them internally.

Instrumentation options

LibraryCoverageNotes
OpenTelemetry contrib GenAI instrumentationsOpenAI, Vertex AI, Bedrock, LangChain and othersOfficial, follow the conventions closely
OpenLLMetry (Traceloop)Dozens of providers, frameworks and vector databasesPython and TypeScript; one-line setup
OpenLITProviders, frameworks, vector databases, GPUsAdds its own dashboard and collector
OpenInference (Arize)Providers and frameworksOwn attribute conventions, mapped to OTel; used by Phoenix
Framework-nativeVercel AI SDK, Pydantic AI, Semantic Kernel, Strands, Spring AIEmit OTel spans with a setting

Many frameworks now emit OpenTelemetry spans themselves, so instrumentation libraries are needed mainly for raw model SDK calls.

A typical setup

  1. Install the OpenTelemetry SDK and an instrumentation library in your app.
  2. Point the OTLP exporter at an OpenTelemetry Collector, or directly at a backend.
  3. In the Collector, add processors to drop or redact sensitive attributes, sample traces and batch exports.
  4. Export to one or more backends, such as Langfuse for prompt-level analysis and Grafana Tempo or Datadog for system-wide tracing.

Because the Collector sits in the middle, changing or adding a backend is a configuration change, not a code change.

Arize Phoenix

Phoenix is an open-source tracing and evaluation tool from Arize AI that runs locally, in a notebook, in Docker or as a hosted service. It reads OpenTelemetry traces using the OpenInference conventions and adds evaluation tooling: LLM-as-a-judge evaluators for relevance, hallucination and toxicity, datasets, experiments and a prompt playground. Teams often use Phoenix during development and a production backend for live traffic.

Privacy

Message content in traces can include personal data, secrets pasted by users, and confidential documents. Keep content capture off by default, enable it per environment, use Collector processors to redact patterns such as emails and API keys, and set retention limits in the backend. Remember that traces may be stored by a third-party vendor.

Sampling and cost

Recording every span of every request can get expensive at scale. Head sampling keeps a fixed percentage of traces; tail sampling in the Collector keeps all traces with errors, high cost or high latency and a sample of the rest. For AI apps, always keep traces with errors, refusals and low user ratings, since those are the ones you will want to read.

Metrics worth exporting

Beyond traces, the GenAI conventions define metrics that suit dashboards and alerts: token usage histograms split by model and operation, operation duration, and time to first token for streaming calls. Export these to Prometheus or your metrics backend, and alert when token usage per request jumps, which often signals a prompt change, a loop in an agent, or abuse. Add GPU metrics from the NVIDIA DCGM exporter if you run models yourself.

A worked example: tracing a RAG request

Consider a support chatbot that answers questions from a help center. With OpenTelemetry and the GenAI conventions, one user question produces a trace like this:

SpanKey attributes
POST /chat (server span)HTTP route, status, user ID set as a custom attribute
embeddings text-embedding-3-smallgen_ai.operation.name=embeddings, input tokens
qdrant searchCollection, number of results, from the vector database instrumentation
chat gpt-5gen_ai.operation.name=chat, request model, input and output tokens, finish reason
execute_tool lookup_orderTool name and call ID
chat gpt-5Second model call after the tool result

From this, a backend can show that most latency came from the second model call, that the vector search returned nothing useful for this question, or that the tool call failed. Attach the user ID and session ID as attributes on the root span, and propagate them as baggage so every child span can be filtered by customer.

Collector configuration tips

The OpenTelemetry Collector is configured in YAML with receivers, processors and exporters. For AI traffic, the useful processors are:

  • attributes or transform to delete or hash message content and user identifiers before export.
  • filter to drop noisy spans such as health checks.
  • tail_sampling to keep all error and slow traces and a share of the rest.
  • batch to reduce export overhead.

Run the Collector as a sidecar or a small deployment next to your app, and send to several exporters when you want both an LLM-focused tool and a general tracing backend.

When to choose OpenTelemetry

SituationRecommendation
Small app, want results quicklyA tool's native SDK, such as Langfuse's
Existing OpenTelemetry for servicesAdd GenAI instrumentation and keep one pipeline
Several observability toolsOpenTelemetry with a Collector fanning out
Concern about vendor lock-inOpenTelemetry

Related: Langfuse stack, Kubernetes stack, LiteLLM stack, Python stack, Go stack, Stack index.

Frequently asked questions

What are the OpenTelemetry GenAI semantic conventions?

A shared vocabulary for AI telemetry. They define span names and attributes such as gen_ai.operation.name, gen_ai.request.model, gen_ai.usage.input_tokens and gen_ai.usage.output_tokens, plus conventions for agents, tools and events that carry prompt and response content. Tools that follow them can display traces from any instrumented app.

Are the GenAI conventions stable?

No. They remain experimental in October 2026, so attribute names can still change. Instrumentation libraries usually let you choose which version to emit. Pin library versions and expect some renaming when conventions stabilize.

Why did the GenAI conventions move to their own repository?

To let the GenAI working group release on its own schedule, separate from the core conventions. On June 12, 2026, the GenAI conventions in the core repository were deprecated in favor of the new semantic-conventions-genai repository.

Do I need OpenTelemetry if I use Langfuse?

No, Langfuse's own SDKs work alone. OpenTelemetry helps if you want to send the same traces to several tools, already use it for the rest of your system, or want to avoid depending on one vendor's SDK. Langfuse accepts OpenTelemetry traces directly.

Should prompts and responses be recorded in traces?

It depends on your privacy rules. The conventions keep message content optional and off by default in many instrumentation libraries, because it can contain personal data. Enable it where you need debugging detail and have retention and access controls in place.

Sources

  1. OpenTelemetry GenAI semantic conventions
  2. semantic-conventions-genai repository
  3. OpenLLMetry on GitHub
  4. Arize Phoenix on GitHub