Key takeaways
- OpenTelemetry’s GenAI conventions are still at Development status, with no release since moving repositories in May 2026.
- Released OpenTelemetry instrumentations still emit gen_ai.client.token.usage, which the spec’s main branch replaced on 22 September.
- OpenTelemetry’s own instrumentations leave prompts out by default. OpenLLMetry and OpenInference record them unless told not to.
- MCP’s 2026-07-28 revision carries trace context in _meta. Send baggage there only if third parties may read it.
- gen_ai.usage.input_tokens includes cached tokens, so add Anthropic’s three input counts before pricing a call.
OpenTelemetry LLM tracing rests on the GenAI semantic conventions, the standard names for the spans, attributes and metrics that describe model calls, tool executions and agent runs. As of 5 November 2026 every part of them is at Development status. They moved to a repository of their own on 5 May 2026, and that repository had published no release by 5 November, so the last released text is core semantic conventions v1.41.1 from 11 May 2026.123
For a team adding tracing now, the gap between that release and the live spec matters more than the status badge. The span name formats and the most-used attributes, such as gen_ai.operation.name, gen_ai.request.model and gen_ai.usage.input_tokens, read the same in both, but the metric names changed. OpenTelemetry’s released instrumentations still emit gen_ai.client.token.usage and gen_ai.client.operation.duration, which the spec’s main branch replaced in September and October.456 Build on the parts that held still, pin library versions, and plan a metric migration.
The sections below cover spans and attributes with a code example, metric renames, prompt content and privacy, MCP trace context, library and backend support, and cost, ending with a rollout checklist.
Where the GenAI semantic conventions stand in November 2026
OpenTelemetry moved the GenAI conventions out of its core semantic conventions repository on 5 May 2026.2 Core release v1.42.0 on 12 June marked every gen_ai.* attribute, metric, event and span there as deprecated and moved.7 The GenAI pages on opentelemetry.io now show a “Moved” notice pointing to GitHub, including the MCP page that the MCP specification links to.8 The live text is the Markdown in open-telemetry/semantic-conventions-genai.
That repository changes almost daily. On 5 November it had no tagged release, and its unreleased changelog held 79 entries, 17 of them marked as breaking.3 They include the metric changes below, a rename of gen_ai.usage.cache_creation.input_tokens to gen_ai.usage.cache_write.input_tokens, and a change merged early on 5 November that folds invoke_workflow spans into the internal invoke_agent span.910 Its documented release process publishes -dev tags as prereleases.11
Version 1.41.1 also set the transition rule many libraries still follow. An instrumentation that emitted v1.36.0 or earlier keeps doing so by default, and moves to the latest experimental conventions when OTEL_SEMCONV_STABILITY_OPT_IN includes gen_ai_latest_experimental.12 Datadog’s setup guide asks for that variable with libraries such as Strands Agents.13 OpenTelemetry’s own Python GenAI instrumentations dropped the switch and always emit the latest experimental conventions.1415
Span names and kinds for model calls, tools and agents
Each GenAI span stands for one logical operation as the caller sees it, from the request until the response is fully received or the operation fails. If the client retries a transient error, the span covers every attempt.16 The operation goes in gen_ai.operation.name, and the span name and kind follow from it.
gen_ai.operation.name |
Span name | Span kind | What it represents |
|---|---|---|---|
chat, generate_content, text_completion |
{operation} {gen_ai.request.model} |
CLIENT, or INTERNAL for a model in the same process |
One inference call |
embeddings |
embeddings {gen_ai.request.model} |
CLIENT |
One embeddings call |
execute_tool |
execute_tool {gen_ai.tool.name} |
INTERNAL |
A tool run by your code or framework |
invoke_agent |
invoke_agent {gen_ai.agent.name} |
CLIENT |
An agent hosted by a remote service, such as Bedrock Agents or an A2A endpoint |
invoke_agent, invoke_workflow, invoke_runner |
{operation} {gen_ai.agent.name} |
INTERNAL |
An agent, graph or framework runner in your own process |
create_agent |
create_agent {gen_ai.agent.name} |
CLIENT |
Creating an agent on a remote service |
Sources: the client inference, embeddings, model span and agent span documents in semantic-conventions-genai, read 5 November 2026.17181619
Main also defines operations for retrieval, memory, planning and realtime sessions.17 Since 5 November, in-process agents use invoke_agent when an LLM drives the control flow, invoke_workflow when the application does, as in a LangGraph StateGraph, and names such as invoke_runner for framework entry points.19
The attributes a sampler may need, namely gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, server.address and server.port, should be set when the span starts.17 Span names, by contrast, are only a recommendation that provider conventions may override. Anthropic’s SDKs name their spans anthropic.messages.create and set gen_ai.operation.name to chat, so dashboards should filter on that attribute.20
The gen_ai attributes worth building on
The attributes below exist in both v1.41.1 and main unless the table says otherwise, and they answer most debugging and cost questions. Requirement levels are for the inference span on main.
| Attribute | What it records | Requirement on main, as of 5 November 2026 |
|---|---|---|
gen_ai.operation.name |
The operation, such as chat, embeddings or execute_tool |
Required |
gen_ai.provider.name |
The provider as the client sees it, such as openai, anthropic or aws.bedrock. Replaced gen_ai.system |
Required |
gen_ai.request.model |
The model name sent in the request | Conditionally required, when available |
gen_ai.response.model |
The model name the response reports, often a dated version | Recommended |
gen_ai.response.id |
The provider’s ID for the response | Recommended |
gen_ai.response.finish_reasons |
One reason per returned choice, in order, with error where a generation ended abnormally |
Recommended |
gen_ai.usage.input_tokens |
All input tokens, cached ones included, and the billed count when a provider reports two | Recommended |
gen_ai.usage.output_tokens |
All output tokens, reasoning tokens included | Recommended |
gen_ai.usage.cache_read.input_tokens |
Input served from the provider’s cache, a subset of input | Recommended when non-zero |
gen_ai.usage.cache_write.input_tokens |
Input written to the cache. Named gen_ai.usage.cache_creation.input_tokens in v1.41.1 |
Recommended when non-zero |
gen_ai.usage.reasoning.output_tokens |
Reasoning tokens, a subset of output | Recommended when non-zero |
gen_ai.conversation.id |
A session or thread ID the library already has, never a generated UUID or trace ID | Conditionally required |
error.type |
A low-cardinality error class, such as the provider’s error code or the exception name | Conditionally required, on failure |
gen_ai.agent.name, gen_ai.tool.name, gen_ai.tool.call.id |
The agent and the tool, on agent and tool spans | Varies by span |
Sources: the client inference, agent span and attribute registry documents on main, and the v1.41.1 registry.17192122
Where an OpenTelemetry instrumentation exists for your client, install it. Write spans yourself only for an in-house gateway, a self-hosted model server or a client nobody instruments, because doing both gives every request two spans.23 Here is a minimal wrapper for OpenAI’s Python SDK, written for this post:
import json
import os
from opentelemetry import trace
from opentelemetry.trace import SpanKind
tracer = trace.get_tracer("app.llm")
CAPTURE = os.getenv("OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT", "NO_CONTENT").upper()
def traced_chat(client, model: str, messages: list[dict]):
attrs = { # set at start so a sampler can see them
"gen_ai.operation.name": "chat",
"gen_ai.provider.name": "openai",
"gen_ai.request.model": model,
}
with tracer.start_as_current_span(f"chat {model}", kind=SpanKind.CLIENT,
attributes=attrs) as span:
try:
resp = client.chat.completions.create(model=model, messages=messages)
except Exception as exc:
span.set_attribute("error.type", type(exc).__name__)
raise # the context manager records the exception and sets ERROR
span.set_attribute("gen_ai.response.id", resp.id)
span.set_attribute("gen_ai.response.model", resp.model)
span.set_attribute("gen_ai.response.finish_reasons",
[c.finish_reason for c in resp.choices])
if resp.usage: # prompt_tokens already includes cached tokens
span.set_attribute("gen_ai.usage.input_tokens", resp.usage.prompt_tokens)
span.set_attribute("gen_ai.usage.output_tokens", resp.usage.completion_tokens)
details = resp.usage.prompt_tokens_details
if details and details.cached_tokens:
span.set_attribute("gen_ai.usage.cache_read.input_tokens",
details.cached_tokens)
if CAPTURE in ("SPAN_ONLY", "SPAN_AND_EVENT"): # off unless someone opts in
span.set_attribute("gen_ai.output.messages", json.dumps([
{"role": "assistant",
"parts": [{"type": "text", "content": c.message.content or ""}]}
for c in resp.choices]))
return resp
Because the span wraps the SDK call, it covers the SDK’s own retries, as the spec asks. Field names come from the OpenAI SDK’s types, and start_as_current_span records an escaping exception and sets the error status by default.2425 The content switch uses the spec’s variable name and values, and messages follow its JSON schema.2627
Token and duration metrics, and the names that changed
Metrics answer aggregate questions, such as how many tokens each model used last week. OpenTelemetry’s Python GenAI utilities record them on every call, whether or not the span is sampled.28
| What it measures | v1.41.1, which released libraries emit | Main on 5 November 2026 | Changed on |
|---|---|---|---|
| Tokens per call | gen_ai.client.token.usage histogram, split by gen_ai.token.type into input and output |
gen_ai.client.inference.operation.input_tokens and .output_tokens histograms |
22 September 2026 |
| Token totals | The sum of the histogram above | gen_ai.client.inference.usage.* counters for input, output, cache read, cache write and reasoning tokens, split by gen_ai.token.modality |
22 September 2026 |
| Inference duration | gen_ai.client.operation.duration histogram, in seconds |
gen_ai.client.inference.duration |
6 October 2026 |
| Streaming latency | gen_ai.client.operation.time_to_first_chunk and .time_per_output_chunk |
gen_ai.client.inference.time_to_first_chunk and .time_per_output_chunk |
6 October 2026 |
| Embeddings | gen_ai.client.operation.duration and gen_ai.client.token.usage |
gen_ai.client.embeddings.duration and gen_ai.client.embeddings.operation.input_tokens |
26 October 2026 |
| Cache writes, on spans | gen_ai.usage.cache_creation.input_tokens |
gen_ai.usage.cache_write.input_tokens |
20 August 2026 |
Sources: v1.41.1 metrics, main’s token metrics, and the pull requests that made each change.122945309
The project’s design note explains the token split. With modality on a single histogram, a call with 100 text tokens and 200 image tokens records two values, so a p95 query over 100 such calls returns 200 when every call used 300.31 The new counters carry modality instead, and they are the instruments meant for spend. On main, gen_ai.client.operation.duration survives only for operations other than inference, embeddings and retrieval, and agent runs get gen_ai.invoke_agent.duration, gen_ai.invoke_agent.inference_calls, gen_ai.invoke_agent.tool_calls and gen_ai.execute_tool.duration.32
The libraries lag. OpenTelemetry’s Python GenAI utilities 1.3b0 (23 October) and its Node.js OpenAI instrumentation 0.22.0 (20 October) both still emit gen_ai.client.token.usage and gen_ai.client.operation.duration, though the Python utilities have recorded gen_ai.invoke_agent.duration and gen_ai.execute_tool.duration since 1.2b0.61433 When a library adopts the new names, a dashboard keyed to the old ones goes quiet without an error. That is the same shape of problem as a pipeline that reported 0 dropped while most of its output was missing, so alert when a GenAI metric stops arriving as well as when its value moves.
Prompts and completions are opt-in
The conventions treat instructions, prompts and outputs as sensitive and often large, so instrumentations should not capture them by default and should offer an opt-in.16 Recording content on span attributes suits pre-production, or storage that already meets your privacy obligations. For production the spec recommends uploading content to separate storage and keeping only a reference on the span, in attributes such as gen_ai.input.messages_ref, added on 27 October.1634
Captured content goes in gen_ai.system_instructions, gen_ai.input.messages and gen_ai.output.messages, and for tools in gen_ai.tool.call.arguments and gen_ai.tool.call.result.1719 Where a language’s SDK can’t yet store structured attributes on spans, these go in as JSON strings. Content can also go on a gen_ai.client.inference.operation.details log event, which became recommended on 9 October with DEBUG severity while its content attributes stayed opt-in.3517
The switch has two names. The spec’s version, added on 26 October, is OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT with the values NO_CONTENT, SPAN_ONLY, EVENT_ONLY and SPAN_AND_EVENT, and an unrecognised value means no content.2616 OpenTelemetry’s released Python instrumentations read OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT with lower-case values such as span_only, and the Node.js OpenAI instrumentation reads the same name set to true.1536 Set whichever name your library documents, then look at a span to confirm.
Other libraries default the other way. OpenLLMetry records prompts, completions and embeddings unless TRACELOOP_TRACE_CONTENT is false, and OpenInference records inputs and outputs unless variables such as OPENINFERENCE_HIDE_INPUTS are set.3738
Personal data, redaction and sampling
Switching content capture off doesn’t remove all personal data from a trace. Anthropic’s SDK documentation warns that the ID it writes to gen_ai.conversation.id is exported in every content mode, so it shouldn’t hold personal data.39 The MCP TypeScript SDK’s tracing, merged but not yet released, leaves tool arguments and results out of its spans but keeps JSON-RPC error messages, handler exception messages and resource URIs, any of which can quote user input.40
Instrumentations have bugs too. OpenLLMetry’s 0.62.4 release on 29 September stopped its CrewAI instrumentation leaking credentials onto spans, and made its MCP client path respect TRACELOOP_TRACE_CONTENT.41
A Collector in front of the backend is the natural place to enforce rules. The contrib redaction processor deletes every attribute that isn’t on an allow list, and an empty list removes them all, so a mistake fails closed.42 It can also mask values whose keys match blocked patterns. The README’s own example blocks keys matching .*token.*, which also matches gen_ai.usage.input_tokens and would mask the counts your cost reports need. Datadog adds that data sent to its Agent Observability product can also be written to APM traces, so access controls have to match in both.13
Honeycomb recommends keeping every GenAI trace and sampling other traffic, since GenAI spans are usually a small share of volume and each one is a call you already paid for. Its example rule keeps any trace with a gen_ai.conversation.id attribute.43 Sampling also limits how much captured content you store, except through an upload hook, which the spec says should run whatever the sampling decision.16
Tracing AI agents across MCP servers and other processes
Across processes, an OpenTelemetry propagator writes the trace context into a carrier, usually the W3C traceparent and tracestate HTTP headers.44 The sampled flag travels with it. Anthropic’s API, whose tracing is in beta, emits no spans for a request whose traceparent has that flag off.45
MCP needs more than headers. It runs JSON-RPC over stdio or Streamable HTTP, and an HTTP header covers one HTTP request, which can carry several MCP messages.46 The OpenTelemetry MCP conventions therefore put the context in params._meta of each request or notification, and the server uses it as the parent of its span while linking the transport span.46 MCP’s 2026-07-28 revision wrote this into the specification through SEP-414. It reserves traceparent, tracestate and baggage in _meta, exempts them from the prefix rule other keys follow, and requires the W3C Trace Context and Baggage formats.474849 A tools/call request under that revision looks like this:
{
"jsonrpc": "2.0",
"id": 7,
"method": "tools/call",
"params": {
"name": "search_orders",
"arguments": { "status": "open" },
"_meta": {
"io.modelcontextprotocol/protocolVersion": "2026-07-28",
"io.modelcontextprotocol/clientCapabilities": {},
"traceparent": "00-5c1f0d8e2a7b4c39a6e1d2f3b4c5d6e7-9a8b7c6d5e4f3a21-01"
}
}
}
The client and server spans are both named tools/call search_orders, with kinds CLIENT and SERVER, and the tool’s own work nests under the server span.4640 Our MCP migration guide covers the rest of the revision.
SDK support is uneven as of 5 November 2026. The Python SDK has traced client and server requests since version 2.0.0 of 28 July, and injects traceparent into outgoing _meta whenever a tracer provider is configured, with no public switch to stop it.5051 The C# SDK injects and extracts the context too.52 The TypeScript SDK merged built-in tracing on 31 October, after its latest release, 2.4.0 of 23 October.5354
_meta carries whatever your global propagator writes. The TypeScript SDK’s docs note that Node’s NodeSDK includes W3C Baggage by default, so baggage would reach every MCP server you call, and suggest registering W3CTraceContextPropagator alone.40 Anthropic’s SDKs send baggage to their API the same way, and OpenTelemetry warns that baggage reaches third-party APIs with no integrity checks.3944 Keep personal data out of it.
Context also arrives from outside. Anthropic’s API, when it calls your MCP server through its connector, sends a traceparent in params._meta that points at its tool-use span.45 A2A runs over HTTP or gRPC, so header propagation applies, but a task polled later from another process starts a separate trace, which a2a.task.id ties back to the first.55 Long-running agent jobs need the same care, so store the trace context with the job or record a span link.
Libraries and backends that support the GenAI conventions
Dedicated LLM observability tools and general tracing backends handle the conventions differently. Each row below comes from the project’s own documentation, release notes or source, read on 5 November 2026. We did not run these libraries against these backends, so treat the tables as documented support.
| Library | What it emits | Prompt and completion content |
|---|---|---|
| OpenTelemetry Python GenAI instrumentations: 13 released packages, including OpenAI, Anthropic, Bedrock, Google GenAI, LangChain and OpenAI Agents | Latest experimental conventions, with no switch. Most packages at 1.3b0 (23 October); metrics still use v1.41.1 names | Off. OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT turns it on |
@opentelemetry/instrumentation-openai for Node.js |
v1.36.0 conventions for Chat Completions, v1.38.0 for the Responses API. Version 0.22.0 (20 October) | Off. Same variable, set to true |
| OpenLLMetry (Traceloop) | Main instrumentations moved to the GenAI conventions in releases from March to May 2026, though its docs page still lists older names such as gen_ai.prompt. Version 0.63.0 (5 November) |
On. TRACELOOP_TRACE_CONTENT=false turns it off |
| OpenInference (Arize) | Its own OpenInference conventions, which Phoenix and Datadog both read | On. OPENINFERENCE_HIDE_* variables hide it |
| Anthropic SDKs, built in (beta) | gen_ai.* attributes under anthropic.* span names, since Python 1.14.0 and TypeScript 0.134.0 (14 October). No metrics or log events |
metadata_only by default |
| MCP SDKs | MCP conventions, with gen_ai.operation.name set to execute_tool on tools/call spans. Python 2.x and C#; TypeScript merged but unreleased |
Tool arguments and results left out (TypeScript) |
Sources: the opentelemetry-python-genai README and OpenAI instrumentation README, the Node.js package README and npm registry, the OpenLLMetry changelog and docs, OpenInference’s configuration spec, Anthropic’s SDK docs and changelogs, and the MCP SDK docs.561533415737383958235040
Agent frameworks add their own spans on top, and our framework comparison covers which of them follow these conventions and where each sends traces by default.
| Backend | How spans arrive | What it does with gen_ai.* |
Watch for |
|---|---|---|---|
| Jaeger 2.23 | OTLP over gRPC or HTTP | Stores the attributes like any others | It stores traces only, so GenAI metrics and log events need another home |
| Grafana Tempo | OTLP over gRPC or HTTP | TraceQL can filter on span.gen_ai.* and sum a token attribute with sum_over_time |
Extrapolating sampled traces is experimental. Grafana Cloud’s GenAI dashboards come with a separate product, OpenLIT Observability |
| Langfuse | OTLP over HTTP at /api/public/otel |
Maps model, request parameters, token usage and tool-call attributes onto its data model | Wants user and session IDs on every span, and suggests baggage to put them there |
| Arize Phoenix | OTLP | Converts gen_ai.* to OpenInference at ingest, from version 15.10.0 (May 2026) |
OpenInference attributes win when a span has both |
| Datadog Agent Observability | OTLP with a dd-otlp-source=llmobs header |
Reads the GenAI conventions from v1.37 onwards, or OpenInference, and estimates cost for supported models | Drops a trace when no span has gen_ai.operation.name, gen_ai.provider.name or a similar marker |
| Honeycomb | OTLP | Reads v1.41.1 names. Cost estimation in early access for openai, anthropic and aws.bedrock |
Its cost figure is a catalogue estimate, and Honeycomb says not to reconcile invoices with it |
Sources: each backend’s documentation as of 5 November 2026.5960616263641365
Cost attribution from token attributes
Token attributes on inference spans are enough to price most calls if the counts mean what the spec says. gen_ai.usage.input_tokens should include cache reads and cache writes, gen_ai.usage.output_tokens should include reasoning tokens, and the cache and reasoning attributes are subsets of those totals.17 Pricing one span then looks like this:
def span_cost(a: dict, rate: dict) -> float:
"""Price one inference span from its gen_ai.usage.* attributes. Rates are per token."""
read = a.get("gen_ai.usage.cache_read.input_tokens", 0)
write = a.get("gen_ai.usage.cache_write.input_tokens", 0)
uncached = a["gen_ai.usage.input_tokens"] - read - write
if uncached < 0:
raise ValueError("input_tokens excludes cached tokens; fix the instrumentation")
return (uncached * rate["input"] + read * rate["cache_read"]
+ write * rate["cache_write"] + a["gen_ai.usage.output_tokens"] * rate["output"])
Providers don’t all count that way. OpenAI’s input counts already include cached tokens and cache writes, and its prompt caching guide subtracts both to get ordinary input.66 Anthropic’s input_tokens covers only the tokens after the last cache breakpoint, so its docs add cache_read_input_tokens and cache_creation_input_tokens to get the total, and the Anthropic conventions require the same sum.6768 In Honeycomb’s worked example, 10 input tokens, 7,433 cache reads and 71 cache writes become a gen_ai.usage.input_tokens of 7,514. Honeycomb warns that hand-written instrumentation, and some for Claude on Bedrock, copies the raw 10, which gives the negative uncached count the function above rejects.65
Double counting is the next trap. The internal invoke_agent span can carry input and output totals for all of the agent’s model calls, so summing every span in a trace counts them twice.19 Honeycomb prices only chat, text_completion, generate_content, embeddings and retrieval spans for that reason.65 When a provider or gateway also traces a call, two inference spans carry the same usage, so group by service.name as the conventions suggest, or sum one source per request as Anthropic’s docs put it.1769
Sampling skews totals too. Token sums from traces sampled at 10% come to roughly a tenth of the real figure unless the backend extrapolates, and Tempo’s extrapolation is experimental.61 Take totals from the usage metrics, or keep every GenAI trace.2843
The conventions define no cost attribute, and a proposal for gen_ai.usage.cost.* has been open since 9 August 2026.70 Datadog estimates cost for supported models and accepts supplied amounts in gen_ai.usage.cost.amount with gen_ai.usage.cost.currency set to USD, citing that proposal.13 Honeycomb’s ingest-time estimate comes from Pydantic’s open pricing catalogue and ignores negotiated rates, discounts and credits.65
To split spend by feature or customer, add your own attribute to inference spans with a span processor, and read it from the same spans as the tokens. Then reconcile totals with the provider’s usage data each month, because instrumentations change what they count. OpenLLMetry 0.63.0, released on 5 November, began counting Gemini thinking tokens in gen_ai.usage.output_tokens for its Vertex AI and Google Generative AI instrumentations.41
A rollout checklist for OpenTelemetry LLM tracing
- Use one source of GenAI spans per call, and turn off any other instrumentation or SDK tracing that covers the same call.
- Pin instrumentation versions, note which convention version each emits, and read release notes for renames before upgrading.
- Set
gen_ai.operation.name,gen_ai.provider.nameandgen_ai.request.modelat span start, and filter dashboards on attributes. - Keep content capture off in production until someone decides where prompts may live, then prefer uploads with references on spans.
- Read every attribute of one real span from each instrumented path before anything reaches a vendor.
- Put a redaction processor with an allow list in the Collector, and check that its patterns don’t match
gen_ai.usage.*. - Send trace context without baggage to third-party APIs and MCP servers unless you mean to share it.
- On MCP servers you run, parent server spans on the
_metacontext and check that one test call produces a single trace. - Count tokens from inference spans only, check that input tokens cover cache reads plus writes, and take totals from metrics or unsampled traces.
- Reconcile monthly with the provider’s usage data, and alert when a GenAI metric stops arriving.
-
OpenTelemetry, “Semantic conventions for generative AI systems” (status: Development), semantic-conventions-genai, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/README.md ↩
-
OpenTelemetry, “Move GenAI semantic conventions to its own dedicated repository”, pull request 3696, merged 5 May 2026, https://github.com/open-telemetry/semantic-conventions/pull/3696 ↩↩
-
OpenTelemetry, semantic-conventions-genai releases (none published) and unreleased changelog fragments, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/releases and https://github.com/open-telemetry/semantic-conventions-genai/tree/main/changelog.d ↩↩
-
OpenTelemetry, “Fix usage metrics to provide meaningful aggregation and break down by modality, reasoning, cache usage”, pull request 374, merged 22 September 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/374 ↩↩
-
OpenTelemetry, “Use gen_ai.client.inference.duration metric instead of gen_ai.client.operation.duration”, pull request 521, merged 6 October 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/521 ↩↩
-
OpenTelemetry, “OpenTelemetry Util for GenAI” README, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/util/opentelemetry-util-genai/README.rst ↩↩
-
OpenTelemetry, semantic conventions v1.42.0 release notes, 12 June 2026, https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.42.0 ↩
-
OpenTelemetry, “Moved: Generative AI semantic conventions” (semantic conventions 1.45.0), read 5 November 2026, https://opentelemetry.io/docs/specs/semconv/gen-ai/ ↩
-
OpenTelemetry, “Add span/event attributes for usage breakdown per modality / cache / phases”, pull request 440, merged 20 August 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/440 ↩↩
-
OpenTelemetry, “Fold invoke_workflow into gen_ai.invoke_agent.internal and add invoke_{framework_entrypoint}”, pull request 571, merged 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/571 ↩
-
OpenTelemetry, semantic-conventions-genai “Releasing”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/RELEASING.md ↩
-
OpenTelemetry, semantic conventions v1.41.1, GenAI README and metrics, 11 May 2026, https://github.com/open-telemetry/semantic-conventions/blob/v1.41.1/docs/gen-ai/README.md and https://github.com/open-telemetry/semantic-conventions/blob/v1.41.1/docs/gen-ai/gen-ai-metrics.md ↩↩
-
Datadog, “OpenTelemetry Instrumentation” for Agent Observability, read 5 November 2026, https://docs.datadoghq.com/llm_observability/instrument/otel_instrumentation/ ↩↩↩↩
-
OpenTelemetry, opentelemetry-util-genai changelog (removal of the OTEL_SEMCONV_STABILITY_OPT_IN code), read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/util/opentelemetry-util-genai/CHANGELOG.md ↩↩
-
OpenTelemetry, “OpenTelemetry OpenAI Instrumentation” (opentelemetry-instrumentation-genai-openai), read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/instrumentation/opentelemetry-instrumentation-genai-openai/README.rst ↩↩↩
-
OpenTelemetry, “Semantic conventions for generative client AI spans”, including “Capturing instructions, inputs, and outputs”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-spans.md ↩↩↩↩↩↩
-
OpenTelemetry, “Semantic conventions for generative AI client inference”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/client-inference.md ↩↩↩↩↩↩↩↩
-
OpenTelemetry, “Semantic conventions for generative AI client embeddings”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/client-embeddings.md ↩
-
OpenTelemetry, “Semantic Conventions for GenAI agent and framework spans”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-agent-spans.md ↩↩↩↩↩
-
Anthropic, OpenTelemetry span reference, read 5 November 2026, https://platform.claude.com/docs/en/api/opentelemetry/spans ↩
-
OpenTelemetry, GenAI attribute registry on main, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/registry/attributes/gen-ai.md ↩
-
OpenTelemetry, semantic conventions v1.41.1, GenAI attribute registry, https://github.com/open-telemetry/semantic-conventions/blob/v1.41.1/docs/registry/attributes/gen-ai.md ↩
-
OpenTelemetry, “OpenTelemetry Anthropic Instrumentation”, section on the Anthropic SDK’s built-in tracing, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/instrumentation/opentelemetry-instrumentation-genai-anthropic/README.rst ↩↩
-
OpenAI, openai-python types for ChatCompletion and CompletionUsage (SDK v3.46.0), read 5 November 2026, https://github.com/openai/openai-python/blob/main/src/openai/types/chat/chat_completion.py and https://github.com/openai/openai-python/blob/main/src/openai/types/completion_usage.py ↩
-
OpenTelemetry Python, tracing API (Tracer.start_as_current_span), read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-api/src/opentelemetry/trace/init.py ↩
-
OpenTelemetry, “Define and formalize GenAI content capture and upload configuration options”, pull request 543, merged 26 October 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/543 ↩↩
-
OpenTelemetry, GenAI output messages JSON schema, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/model/gen-ai/gen-ai-output-messages.json ↩
-
OpenTelemetry, opentelemetry-util-genai metric instruments and recording code, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/util/opentelemetry-util-genai/src/opentelemetry/util/genai/_instruments.py and https://github.com/open-telemetry/opentelemetry-python-genai/blob/main/util/opentelemetry-util-genai/src/opentelemetry/util/genai/_invocation.py ↩↩
-
OpenTelemetry, “Semantic conventions for generative AI inference token metrics”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-token-metrics.md ↩
-
OpenTelemetry, “Use gen_ai.client.embeddings.duration and gen_ai.client.embeddings.operation.input_tokens metrics for embeddings”, pull request 578, merged 26 October 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/578 ↩
-
OpenTelemetry, “Design choices behind token metrics”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/non-normative/token-metrics-design.md ↩
-
OpenTelemetry, “Semantic conventions for generative AI metrics”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-metrics.md ↩
-
OpenTelemetry, “OpenTelemetry OpenAI module Instrumentation for Node.js” README, https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-openai, and npm registry entry (0.22.0, 20 October 2026), https://registry.npmjs.org/@opentelemetry/instrumentation-openai ↩↩
-
OpenTelemetry, “Define external references for generative AI inference content”, pull request 490, merged 27 October 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/490 ↩
-
OpenTelemetry, “Make gen_ai.client.inference.operation.details event recommended instead of opt-in”, pull request 579, merged 9 October 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/579 ↩
-
OpenTelemetry, instrumentation-openai configuration types, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/packages/instrumentation-openai/src/types.ts ↩
-
Traceloop, “Prompts, Completions and Embeddings”, read 5 November 2026, https://www.traceloop.com/docs/openllmetry/privacy/traces ↩↩
-
Arize, “OpenInference Configuration”, read 5 November 2026, https://github.com/Arize-ai/openinference/blob/main/spec/configuration.md ↩↩
-
Anthropic, “Set up OpenTelemetry with the Claude SDK” (beta), read 5 November 2026, https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk ↩↩↩
-
MCP TypeScript SDK, “OpenTelemetry”, read 5 November 2026, https://github.com/modelcontextprotocol/typescript-sdk/blob/main/docs/advanced/opentelemetry.md ↩↩↩↩
-
Traceloop, OpenLLMetry changelog (v0.53.4 to v0.63.0), read 5 November 2026, https://github.com/traceloop/openllmetry/blob/main/CHANGELOG.md ↩↩↩
-
OpenTelemetry Collector contrib, “Redaction Processor” README, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/redactionprocessor/README.md ↩
-
Honeycomb, “Avoid Sampling Gen AI Telemetry”, read 5 November 2026, https://docs.honeycomb.io/manage-data-volume/sample/gen-ai ↩↩
-
OpenTelemetry, “Baggage”, section “Baggage security considerations”, https://opentelemetry.io/docs/concepts/signals/baggage/ ↩↩
-
Anthropic, “Set up OpenTelemetry with the Claude API” (beta), read 5 November 2026, https://platform.claude.com/docs/en/manage-claude/opentelemetry/api ↩↩
-
OpenTelemetry, “Semantic conventions for Model Context Protocol (MCP)”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/mcp.md ↩↩↩
-
Model Context Protocol, “Key Changes” for the 2026-07-28 revision, https://modelcontextprotocol.io/specification/2026-07-28/changelog ↩
-
Model Context Protocol, 2026-07-28 “Overview”, section on
_metaand OpenTelemetry trace context, https://modelcontextprotocol.io/specification/2026-07-28/basic ↩ -
Model Context Protocol, “SEP-414: Document OpenTelemetry Trace Context Propagation Conventions” (Final), https://modelcontextprotocol.io/community/seps/414-request-meta ↩
-
MCP Python SDK, “OpenTelemetry”, read 5 November 2026, https://py.sdk.modelcontextprotocol.io/run/opentelemetry/ ↩↩
-
MCP Python SDK, “Migration Guide”, section “OpenTelemetry is on by default”, read 5 November 2026, https://py.sdk.modelcontextprotocol.io/migration/ ↩
-
MCP C# SDK, Diagnostics.cs, read 5 November 2026, https://github.com/modelcontextprotocol/csharp-sdk/blob/main/src/ModelContextProtocol.Core/Diagnostics.cs ↩
-
MCP TypeScript SDK, “feat: built-in OpenTelemetry tracing and metrics”, pull request 3115, merged 31 October 2026, https://github.com/modelcontextprotocol/typescript-sdk/pull/3115 ↩
-
MCP TypeScript SDK releases, read 5 November 2026, https://github.com/modelcontextprotocol/typescript-sdk/releases ↩
-
OpenTelemetry, “Semantic conventions for Agent2Agent Protocol (A2A)”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/a2a.md ↩
-
OpenTelemetry, opentelemetry-python-genai README, read 5 November 2026, https://github.com/open-telemetry/opentelemetry-python-genai ↩
-
Traceloop, “GenAI Semantic Conventions”, read 5 November 2026, https://www.traceloop.com/docs/openllmetry/contributing/semantic-conventions ↩
-
Anthropic, Python SDK changelog (1.14.0, 14 October 2026), https://github.com/anthropics/anthropic-sdk-python/blob/main/CHANGELOG.md, and TypeScript SDK changelog (0.134.0, 14 October 2026), https://github.com/anthropics/anthropic-sdk-typescript/blob/main/CHANGELOG.md ↩
-
Jaeger, “APIs” (version 2.23), read 5 November 2026, https://www.jaegertracing.io/docs/2.23/architecture/apis/ ↩
-
Grafana Labs, Tempo HTTP API reference (supported ingestion protocols), read 5 November 2026, https://grafana.com/docs/tempo/latest/api_docs/ ↩
-
Grafana Labs, “TraceQL metrics functions”, read 5 November 2026, https://grafana.com/docs/tempo/latest/metrics-from-traces/metrics-queries/functions/ ↩↩
-
Grafana Labs, “Grafana Cloud OpenLIT Observability”, read 5 November 2026, https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-applications/ai-observability/ ↩
-
Langfuse, “OpenTelemetry (OTEL) for LLM Observability”, read 5 November 2026, https://langfuse.com/integrations/native/opentelemetry ↩
-
Arize, “05.15.2026: OTel GenAI Semantic Convention Auto-Conversion”, https://arize.com/docs/phoenix/release-notes/05-2026/05-15-2026-otel-semconv-conversion ↩
-
Honeycomb, “How Honeycomb Calculates LLM Costs” (early access), read 5 November 2026, https://docs.honeycomb.io/investigate/observe/llm-cost ↩↩↩↩
-
OpenAI, “Prompt caching”, read 5 November 2026, https://developers.openai.com/api/docs/guides/prompt-caching ↩
-
Anthropic, “Prompt caching”, section “Tracking cache performance”, read 5 November 2026, https://platform.claude.com/docs/en/build-with-claude/prompt-caching ↩
-
OpenTelemetry, “Semantic conventions for Anthropic”, read 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/anthropic.md ↩
-
Anthropic, “OpenTelemetry”, section “Counting tokens”, read 5 November 2026, https://platform.claude.com/docs/en/manage-claude/opentelemetry ↩
-
OpenTelemetry, “Add per-operation cost conventions (gen_ai.usage.cost.*)”, pull request 443, opened 9 August 2026 and still open on 5 November 2026, https://github.com/open-telemetry/semantic-conventions-genai/pull/443 ↩
Frequently asked questions
What are the OpenTelemetry GenAI semantic conventions?
They are OpenTelemetry’s standard names for the spans, attributes, metrics and events that describe model calls, embeddings, tool executions and agent runs, such as gen_ai.operation.name, gen_ai.request.model and gen_ai.usage.input_tokens. Since May 2026 they live in the open-telemetry/semantic-conventions-genai repository on GitHub.
Are the OpenTelemetry GenAI semantic conventions stable?
No. As of 5 November 2026 every GenAI signal is at Development status. The last published text is core semantic conventions v1.41.1 from 11 May 2026, and the new repository had no tagged release, with 17 breaking changes waiting in its changelog.
How do I capture prompts and completions in OpenTelemetry traces?
You opt in. OpenTelemetry’s Python and JavaScript GenAI instrumentations read OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT, and current conventions put the content in gen_ai.input.messages and gen_ai.output.messages. For production the spec recommends uploading content to separate storage and putting only a reference on the span.
How do you pass trace context to an MCP server?
The client writes the W3C traceparent, tracestate and, optionally, baggage values into params._meta of each request, and the server uses them as the parent of its span. The MCP 2026-07-28 revision documents these keys through SEP-414. The Python SDK from version 2.0 and the C# SDK do this already.
How do I calculate LLM cost from OpenTelemetry spans?
Read gen_ai.usage.* from inference spans only, subtract cache reads and cache writes from input tokens to get uncached input, and multiply each count by its rate. Skip invoke_agent spans, which can carry totals, and use metrics or unsampled traces so sampling doesn’t shrink the sum.
Which observability backends support OpenTelemetry GenAI semantic conventions?
As of 5 November 2026, Datadog, Honeycomb and Langfuse document support for gen_ai.* attributes, and Arize Phoenix converts them to its OpenInference format at ingest. Jaeger and Grafana Tempo accept the spans over OTLP and store the attributes as they would any others.
Building something like this?
9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.