lowob

OpenTelemetry GenAI Semantic Conventions Explained

OpenTelemetry's GenAI semantic conventions are an open naming standard for recording model calls, agent runs, tool calls, token counts and evaluation scores as telemetry, so any compatible backend can read the same trace. As of 16 November 2026 every `gen_ai` attribute is at Development status, and names are still changing. Use them as your exit route from a vendor, but pin the version you instrument against.

Gateway 0ToolingContextRecordReasoningGateway 1Gateway 2Gateway 3
Agents are the reasoning layer, and they touch every stage of the build.

These conventions are the reason trace portability is possible at all, which is why our ranking of the top 5 LLM observability and evaluation platforms weights OpenTelemetry support at 25%. If the wider topic is new, start with what LLM observability is.

What are the OpenTelemetry GenAI semantic conventions?

They are a shared vocabulary for AI telemetry: agreed span, attribute and metric names for generative AI operations. OpenTelemetry publishes them so an agent instrumented once can send the same data to any backend that understands it.

The repository README, read on 16 November 2026, describes its scope as "spans, metrics, and events for GenAI clients, MCP (Model Context Protocol), and provider-specific conventions". Provider pages exist for Anthropic, Azure AI Inference, AWS Bedrock and OpenAI, and there are separate pages for MCP and the Agent2Agent protocol. Shared attributes such as `error.type` and `server.address` still come from the core conventions, and those are the parts marked Stable.

What do the conventions define?

They define spans, metrics and events for an AI system, each with a fixed name pattern. The table summarises the main ones as they stood in the repository's main branch on 16 November 2026.

SignalName or patternWhat it records
Inference span`{operation} {model}`, for example `chat` plus the model nameOne model call; requires `gen_ai.operation.name` and `gen_ai.provider.name`; recommends input and output token counts
Agent span`invoke_agent {agent name}` or `invoke_workflow`One agent run, or a workflow whose control flow the application defines
Plan span`plan {agent name}`The step where an agent decides what to do before doing it
Tool span`execute_tool {tool name}`One tool call; MCP tool calls are defined as compatible with it
Agent metrics`gen_ai.invoke_agent.duration`, `.inference_calls`, `.tool_calls`How long a run took and how many model and tool calls it made
Token metrics`gen_ai.client.inference.usage.` counters and `gen_ai.client.inference.operation.` histogramsTokens spent over time, including cache and reasoning tokens, as a proxy for cost
Evaluation event`gen_ai.evaluation.result`A quality score attached to the span it judges, with name, value, label and explanation

The evaluation event requires `gen_ai.evaluation.name` and should be parented to the span being evaluated, so a grader's score and the run it scored travel together. Our explainer on AI evals covers what those scores should measure.

Are the GenAI conventions stable?

No. Every GenAI span, metric, event and attribute in the repository was marked Development on 16 November 2026. OpenTelemetry's maturity-level definitions say that at Development, configuration options "might break often" and a component "MAY be removed without prior notice".

Three dated facts set the position. The core repository's changelog for version 1.42.0 lists the move as a breaking change: all `gen_ai.*` attributes, metrics, events and spans there "are deprecated in this repository and have moved" to the new one. Dash0's guide, updated 15 September 2026, dates that move to 12 June 2026. The core conventions have since reached version 1.45.0, while the GenAI repository's changelog still shows only an "Unreleased" section.

The changes are real, not theoretical. In version 1.41.0 of the core conventions, token use was a single histogram, `gen_ai.client.token.usage`, and workflows had their own "Invoke workflow span". In the GenAI repository's main branch on 16 November 2026, tokens are split into separate counters for input, output, cache reads, cache writes and reasoning, and `invoke_workflow` is an operation name on the internal agent span. Dashboards and cost reports built on the old names would need rework.

How do the conventions handle prompts and personal data?

Content is off by default. Capturing instructions, prompts, completions, tool arguments, tool results, retrieval queries and memory records requires an explicit opt-in.

The spans document, read on 16 November 2026, says an environment variable for this MUST be named `OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT`, with four values: `NO_CONTENT` (the default), `SPAN_ONLY`, `EVENT_ONLY` and `SPAN_AND_EVENT`. An invalid value should fall back to no content. The conventions also define reference attributes, such as `gen_ai.input.messages_ref`, that point to content held in external storage rather than in the trace. Dash0's September 2026 guide describes an earlier example variable name, which shows how quickly these details move.

A sales or service agent's trace can hold client names, prices and email text, so set retention and access rules before switching capture on.

The standard makes traces portable in principle. Pinning the version is what makes them portable in practice.

How do observability vendors use the conventions?

Each vendor maps `gen_ai.*` spans into its own data model, so support means different things. These were the documented behaviours when we checked in November 2026.

  • Langfuse accepts OTLP at `/api/public/otel`, and its guide says "OpenTelemetry spans carrying gen_ai.* attributes become generations", with model, token and cost fields.
  • LangSmith accepts OTLP at its API URL plus `/otel`, maps `gen_ai.usage.input_tokens` and similar attributes to its own fields, and still reads deprecated spellings such as `gen_ai.usage.prompt_tokens`. It also documents sending the same spans to a second backend through an OpenTelemetry Collector.
  • Arize AX added native ingestion on 11 August 2026, mapping attributes into its OpenInference format while it "also preserves the original gen_ai.* attributes on the span".

On exit, what matters is whether the original attributes survive conversion.

What should a team do while the standard is in Development?

Instrument against the conventions now, and treat the version as a dependency you manage.

  1. Pin the instrumentation library and record which conventions version or commit it targets.
  2. Keep attribute names in one place in your code or collector configuration, so a rename is one change.
  3. Set content capture deliberately. Start at `NO_CONTENT` in production and enable content per workflow once retention rules exist.
  4. Emit evaluation results as events on the span they judge, so scores are portable too.
  5. Test the exit. Send one full agent run to a second backend through a collector and check that tool calls and scores arrive intact.

lowob takeaways

  • The conventions are the portability layer. They give model calls, agents, tools and scores shared names.
  • They are not stable. Every `gen_ai` item was at Development on 16 November 2026, with no tagged release.
  • Names have already changed. Token metrics and workflow spans differ between version 1.41.0 and the current repository.
  • Content capture is opt-in. Set retention and access rules before switching it on.

Common questions

What are OpenTelemetry GenAI semantic conventions?

They are OpenTelemetry's standard names for telemetry from generative AI systems: spans for model calls, agent runs, planning and tool calls, metrics for duration and tokens, and an event for evaluation scores. Instrumenting against them means any compatible backend can read the same traces, which reduces lock-in to one observability vendor.

Are the OpenTelemetry GenAI conventions stable?

No. As of 16 November 2026, every GenAI span, metric, event and attribute is at Development status. The conventions moved to a separate repository in version 1.42.0 on 12 June 2026, and that repository had no tagged release. Pin your instrumentation version and expect attribute names to change.

Where did the GenAI semantic conventions move to?

In version 1.42.0 of the core semantic conventions, dated 12 June 2026, the GenAI, OpenAI and MCP conventions moved to a dedicated repository, open-telemetry/semantic-conventions-genai. The core repository marks its old GenAI definitions as deprecated and points instrumentations to the new repository for the schema URL to use.

Does OpenTelemetry record prompts and responses?

Only if you opt in. The conventions say capturing prompts, completions, tool arguments and results requires explicit configuration, and the environment variable `OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT` defaults to `NO_CONTENT`. Content can also be stored externally and referenced from the trace, which helps when traces would otherwise hold personal data.

Sources and notes

Top 5 LLM Observability and Evaluation Platforms

Read next in lowob research