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
| Project | Relationship to OpenTelemetry |
|---|---|
| OpenLLMetry | Instrumentation libraries for model SDKs, frameworks and vector databases that emit OTel traces |
| OpenLIT | OTel-native SDK and collector distribution plus a dashboard, with GPU metrics |
| Helicone | Proxy-based logging that also accepts OpenTelemetry traces from instrumented apps |
| Arize Phoenix | Tracing 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:
| Area | Examples |
|---|---|
| Model spans | gen_ai.operation.name (chat, embeddings, execute_tool), gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model |
| Usage | gen_ai.usage.input_tokens, gen_ai.usage.output_tokens |
| Request settings | Temperature, max tokens, top_p |
| Agents | Spans for agent creation and invocation, agent name and ID |
| Tools | Tool name, call ID and type |
| Content | Input and output messages, recorded only when enabled |
| Metrics | Token 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_INenvironment variable, to emit the latest experimental names. - Backends often accept several versions and map them internally.
Instrumentation options
| Library | Coverage | Notes |
|---|---|---|
| OpenTelemetry contrib GenAI instrumentations | OpenAI, Vertex AI, Bedrock, LangChain and others | Official, follow the conventions closely |
| OpenLLMetry (Traceloop) | Dozens of providers, frameworks and vector databases | Python and TypeScript; one-line setup |
| OpenLIT | Providers, frameworks, vector databases, GPUs | Adds its own dashboard and collector |
| OpenInference (Arize) | Providers and frameworks | Own attribute conventions, mapped to OTel; used by Phoenix |
| Framework-native | Vercel AI SDK, Pydantic AI, Semantic Kernel, Strands, Spring AI | Emit 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
- Install the OpenTelemetry SDK and an instrumentation library in your app.
- Point the OTLP exporter at an OpenTelemetry Collector, or directly at a backend.
- In the Collector, add processors to drop or redact sensitive attributes, sample traces and batch exports.
- 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:
| Span | Key attributes |
|---|---|
POST /chat (server span) | HTTP route, status, user ID set as a custom attribute |
embeddings text-embedding-3-small | gen_ai.operation.name=embeddings, input tokens |
qdrant search | Collection, number of results, from the vector database instrumentation |
chat gpt-5 | gen_ai.operation.name=chat, request model, input and output tokens, finish reason |
execute_tool lookup_order | Tool name and call ID |
chat gpt-5 | Second 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
| Situation | Recommendation |
|---|---|
| Small app, want results quickly | A tool's native SDK, such as Langfuse's |
| Existing OpenTelemetry for services | Add GenAI instrumentation and keep one pipeline |
| Several observability tools | OpenTelemetry with a Collector fanning out |
| Concern about vendor lock-in | OpenTelemetry |
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.