agenticweb.wiki

OpenTelemetry GenAI Semantic Conventions (agents and MCP)

Category: (account) · Form: Document format (document-format) · Last checked · 24 primary sources

This page is about the OpenTelemetry Semantic Conventions for Generative AI (GenAI), which define span, metric, and event names for GenAI agent calls and Model Context Protocol (MCP) client and server telemetry. It is not the Agent Audit Trail (AAT) hash-chained JSON log format or the WIMSE Agent Audit Record DSSE-signed authorization record. [1][2][3][4]

OpenTelemetry GenAI Semantic Conventions (including Semantic Conventions for GenAI agent and framework spans, Status: Development) define semantic conventions for GenAI agent calls, including gen_ai.operation.name. The repository extends the OpenTelemetry Semantic Conventions with GenAI-specific conventions. [1][2] The MCP client span becomes a parent of the MCP server span regardless of transport used. In the example, INTERNAL span invoke_agent weather-forecast-agent (trace=t1) parents the client span tools/call get-weather (parent=s1). [5] The semantic-conventions-genai repository has 0 published releases and 0 tags, was created on 2026-05-05, and was last pushed on 2026-11-08, while managing dependencies on the core semantic conventions. The MCP document has Status: Development and links core semantic conventions v1.45.0 (published 2026-11-02). [1][5][6]

Problem and scope

For an AI agent, given its non-deterministic nature, telemetry is also used as a feedback loop for evaluation tools. It is important to establish standards around the shape of that telemetry to avoid lock-in caused by vendor or framework specific formats. [9] The conventions establish standards around the shape of telemetry generated by agent apps. In the MCP example, INTERNAL span invoke_agent weather-forecast-agent in trace=t1 parents tools/call get-weather, and the MCP client span becomes a parent of the MCP server span regardless of transport used. [5][9] GenAI agent conventions extend and override GenAI span conventions and MAY apply to agent operations the framework performs locally. MCP is based on JSON RPC, and instrumenting MCP calls is RECOMMENDED to follow MCP conventions instead of RPC semantic conventions. [2][5]

Adoption and ecosystem

Selected verified implementations (15 probed or cited examples across 3 tables; non-exhaustive — see Ecosystem censuses below for ecosystem-wide totals).

Telemetry producers, SDKs & auto-instrumentations

ActorRoleStatusEmitted signals, scope & packageSource
OpenTelemetry Python GenAI — OpenAI Agents (opentelemetry-instrumentation-genai-openai-agents)Official OTel agent instrumentation (openai-agents >= 0.3.3, < 1)Supported · checked 2026-11-04Released package 1.3b0 in open-telemetry/opentelemetry-python-genai (superseding deprecated opentelemetry-instrumentation-openai-agents-v2); emits spans, metrics, and logs according to semantic-conventions-genai via opentelemetry-util-genaiopentelemetry-python-genai [12] · deprecation notice [13]
OpenTelemetry Python GenAI — LangChain (opentelemetry-instrumentation-genai-langchain)Official OTel framework instrumentation (langchain >= 0.3.22, < 2)Supported · checked 2026-11-04Released package 1.3b0 in open-telemetry/opentelemetry-python-genai (langchain >= 0.3.22, < 2, Semconv status development); emits spans, metrics, and logs according to semantic-conventions-genaiopentelemetry-python-genai [12] · opentelemetry-python-contrib [14]
OpenTelemetry Python GenAI — LlamaIndex, Agno, DSPy, Smolagents & Qwen-AgentOfficial OTel agent framework instrumentationsSupported · checked 2026-11-04Released packages in open-telemetry/opentelemetry-python-genai: opentelemetry-instrumentation-genai-llama-index (1.3b0), opentelemetry-instrumentation-genai-agno (1.3b0), opentelemetry-instrumentation-genai-dspy (1.3b0), opentelemetry-instrumentation-genai-smolagents (1.2b0), and opentelemetry-instrumentation-genai-qwen-agent (1.3b0)opentelemetry-python-genai [12]
OpenTelemetry Python GenAI — OpenAI, Anthropic, Bedrock & Google GenAIOfficial OTel model provider instrumentationsSupported · checked 2026-11-04Released 1.3b0 packages in open-telemetry/opentelemetry-python-genai (opentelemetry-instrumentation-genai-openai, opentelemetry-instrumentation-genai-anthropic, opentelemetry-instrumentation-genai-bedrock, opentelemetry-instrumentation-google-genai)opentelemetry-python-genai [12] · OTel Registry (openai) [15]
OpenTelemetry Python GenAI — Claude Agent SDK & CrewAI (1.4b0.dev)Official OTel skeleton instrumentations (claude-agent-sdk, crewai)Development · checked 2026-11-04Listed under Unreleased Instrumentations (skeleton, version 1.4b0.dev) in open-telemetry/opentelemetry-python-genai for claude-agent-sdk >= 0.1.14, < 1 and crewai >= 1.10.1, < 2opentelemetry-python-genai [12]
OpenLLMetry (Traceloop)OpenTelemetry instrumentation setSupported · as of 2025-03-06OpenLLMetry, maintained by Traceloop, is a set of extensions built on OpenTelemetry. The README says their semantic conventions are now part of OpenTelemetry and that the repo contains standard OpenTelemetry instrumentations for LLM providers and vector databases. Package opentelemetry-instrumentation-mcp 0.62.4 is described as OpenTelemetry mcp instrumentation, registers opentelemetry.instrumentation.mcp:McpInstrumentor, and depends on opentelemetry-semantic-conventions-ai. The README checklist marks MCP, CrewAI, and LangGraph, and marks AWS Strands as built-in OTEL support. Those lines do not name GenAI or MCP attribute keys. The 2025-03-06 OpenTelemetry post lists Traceloop OpenTelemetry Instrumentation as an external package and says Traceloop is trying to donate the instrumentation code to OpenTelemetry.OpenLLMetry README (checked 2026-11-04) [16] · opentelemetry-instrumentation-mcp pyproject.toml (checked 2026-11-04) [17] · OpenTelemetry, AI Agent Observability (published 2025-03-06; checked 2026-10-31) [9]
OpenLITOpenTelemetry-native GenAI and MCP SDKSupported · as of 2026-11-04Python and TypeScript SDK (openlit.init(), README fetched 2026-11-04). The README says OpenLIT automatically instruments supported LLM providers, frameworks, vector databases, and other AI infrastructure and exports OpenTelemetry traces and metrics, and that traces and metrics follow OpenTelemetry GenAI semantic conventions (gen_ai.*). The harness table includes observing every LLM call, tool call, and MCP request. Default export shown is OTLP at http://127.0.0.1:4318. The platform receiver is a separate row.OpenLIT README (checked 2026-11-04) [18]
Pydantic Logfire / Pydantic AIAgent framework instrumentationSupported · as of 2026-11-04logfire.instrument_pydantic_ai() enables instrumentation of Pydantic AI (fetched 2026-11-04), following the OpenTelemetry Semantic Conventions for Generative AI systems (gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, gen_ai.client.token.usage).Pydantic Logfire (checked 2026-11-04) [19]
CrewAIAgent framework (baked-in instrumentation)Supported · as of 2025-03-06The 2025-03-06 OpenTelemetry blog post states that some AI agent frameworks, such as CrewAI, provide built-in instrumentation that emits telemetry using OpenTelemetry semantic conventions.OpenTelemetry, AI Agent Observability (published 2025-03-06; checked 2026-10-31) [9]
AG2GenAI span middlewareListed · checked 2026-11-06AG2 middleware follows the OpenTelemetry GenAI semantic conventions. gen_ai.operation.name includes invoke_agent, chat, execute_tool, and await_human_input. Tool spans carry gen_ai.tool.name, gen_ai.tool.call.id, and gen_ai.tool.type. Named backends include Jaeger, Grafana Tempo, Datadog, Honeycomb, Langfuse, Arize AX, and Arize Phoenix.AG2 agent telemetry [20]

Observability backends, collectors & evaluation platforms

ActorRoleStatusIngested OTel GenAI conventions & endpointSource
LangfuseOpenTelemetry backendSupported · as of 2026-11-04Docs fetched 2026-11-04. Langfuse can operate as an OpenTelemetry Backend and can receive traces on /api/public/otel (OTLP). The exporter example uses https://cloud.langfuse.com/api/public/otel. The page says it focuses on spans with gen_ai.* attributes and names OpenTelemetry GenAI semantic conventions. Attributes in the langfuse.* namespace map OpenTelemetry span attributes directly to the Langfuse data model and take precedence over the generic OpenTelemetry conventions.Langfuse OpenTelemetry docs (checked 2026-11-04) [21]
Datadog LLM ObservabilityAgent observability backendSupported · as of 2026-11-04Datadog's OpenTelemetry LLM Observability documentation (docs.datadoghq.com/llm_observability/instrumentation/otel_instrumentation/, HTTP 200, dateModified 2026-11-04, canonical /llm_observability/instrument/) states that users can instrument LLM applications with OpenTelemetry using GenAI or OpenInference semantic conventions and send traces to Agent Observability without the Datadog SDK.Datadog OpenTelemetry instrumentation (checked 2026-11-04) [22]
OpenLIT PlatformOTLP receiver and evaluation platformSupported · as of 2026-11-04Same README as the SDK row (fetched 2026-11-04). OpenLIT is described as an open-source agent harness engineering platform. Traces and metrics follow OpenTelemetry GenAI semantic conventions (gen_ai.*). The diagram sends OTLP from an AI app or agent to an OpenLIT OTLP receiver, with an optional OpenTelemetry Collector. The quickstart shows the local dashboard at http://127.0.0.1:3000 and the OTLP endpoint http://127.0.0.1:4318.OpenLIT README (checked 2026-11-04) [18]
Arize AXOpenInference mappingListed · checked 2026-11-06Arize AX preserves raw gen_ai.* attributes. An explicit OpenInference attribute wins, so gen_ai.request.model does not overwrite an existing llm.model_name. Span kind is inferred from gen_ai.operation.name. An unrecognized operation leaves the span kind unset.Arize OpenInference semantic conventions [23]

GenAI provider coverage matrix

ActorRoleStatusNamed providersSource
semantic-conventions-genai reference matrixProvider-by-operation coverageListed · checked 2026-11-06The semantic-conventions-genai reference matrix names providers aws-bedrock, azure-ai-inference, azure-openai, groq, litellm, mistralai, and openai. The Embeddings row names aws-bedrock, azure-ai-inference, azure-openai, and cohere. Fetch Response names openai. A Memory row is present with an empty provider cell.semantic-conventions-genai reference README [24]

Ecosystem censuses

+ Submit an implementation

See also

References

  1. OpenTelemetry, OpenTelemetry GenAI Semantic Conventions, created 2026-05-05; pushed 2026-11-08; 0 releases, 0 tags — https://github.com/open-telemetry/semantic-conventions-genai
  2. OpenTelemetry, Semantic Conventions for GenAI agent and framework spans, Status: Development; fetched 2026-10-31 — https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/gen-ai-agent-spans.md
  3. R. Sharif (CyberSecAI Ltd), Agent Audit Trail: A Standard Logging Format for Autonomous AI Systems (draft-sharif-agent-audit-trail-09), draft-sharif-agent-audit-trail-09; 26 October 2026 — https://www.ietf.org/archive/id/draft-sharif-agent-audit-trail-09.txt
  4. S. Gilda, An Audit Record Format for AI Agent Authorization Decisions (draft-gilda-audit-agent-audit-record-03), 29 October 2026 — https://www.ietf.org/archive/id/draft-gilda-audit-agent-audit-record-03.txt
  5. OpenTelemetry, Semantic conventions for Model Context Protocol (MCP), Status: Development; links core semantic conventions v1.45.0 — https://github.com/open-telemetry/semantic-conventions-genai/blob/main/docs/gen-ai/mcp.md
  6. OpenTelemetry (open-telemetry), open-telemetry/semantic-conventions releases (v1.45.0, published 2026-11-02), v1.45.0 published 2026-11-02; fetched 2026-11-08 — https://github.com/open-telemetry/semantic-conventions/releases
  7. OpenTelemetry, open-telemetry/semantic-conventions, created 2023-05-09; pushed 2026-10-30 — https://github.com/open-telemetry/semantic-conventions
  8. OpenTelemetry, Moved: Generative AI semantic conventions, fetched 2026-10-31 — https://opentelemetry.io/docs/specs/semconv/gen-ai/
  9. Guangya Liu (IBM) and Sujay Solomon (Google), AI Agent Observability - Evolving Standards and Best Practices, published 2025-03-06; page last modified 2026-02-24 — https://opentelemetry.io/blog/2025/ai-agent-observability/
  10. Model Context Protocol, Specification, version 2026-07-28; fetched 2026-10-30 — https://modelcontextprotocol.io/specification/2026-07-28
  11. A2A Protocol, Overview - A2A Protocol, fetched 2026-10-30 — https://a2a-protocol.org/latest/specification/
  12. OpenTelemetry, OpenTelemetry Python GenAI Instrumentations, checked 2026-11-04 — https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-genai/main/README.md
  13. OpenTelemetry, deprecation notice, checked 2026-11-04 — https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/main/instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2/README.rst
  14. OpenTelemetry, opentelemetry-python-contrib, checked 2026-11-04 — https://raw.githubusercontent.com/open-telemetry/opentelemetry-python-contrib/main/instrumentation-genai/README.md
  15. OpenTelemetry, OTel Registry (openai), checked 2026-11-04 — https://raw.githubusercontent.com/open-telemetry/opentelemetry.io/main/data/registry/instrumentation-python-genaiopenai.yml
  16. OpenLLMetry (Traceloop), OpenLLMetry README, checked 2026-11-04 — https://raw.githubusercontent.com/traceloop/openllmetry/main/README.md
  17. OpenLLMetry (Traceloop), opentelemetry-instrumentation-mcp pyproject.toml, checked 2026-11-04 — https://raw.githubusercontent.com/traceloop/openllmetry/main/packages/opentelemetry-instrumentation-mcp/pyproject.toml
  18. OpenLIT, OpenLIT: the open-source agent harness engineering platform, checked 2026-11-04 — https://raw.githubusercontent.com/openlit/openlit/main/README.md
  19. Pydantic, Pydantic Logfire Debugging and Monitoring | Pydantic Docs, checked 2026-11-04 — https://ai.pydantic.dev/logfire/
  20. AG2, Agent telemetry, fetched 2026-11-06 — https://docs.ag2.ai/docs/user-guide/telemetry/agent/
  21. Langfuse, OpenTelemetry (OTEL) for LLM Observability - Langfuse, checked 2026-11-04 — https://langfuse.com/docs/opentelemetry/get-started
  22. Datadog, OpenTelemetry Instrumentation, checked 2026-11-04 — https://docs.datadoghq.com/llm_observability/instrumentation/otel_instrumentation/
  23. Arize, OpenInference semantic conventions, fetched 2026-11-06 — https://arize.com/docs/ax/observe/tracing/openinference-semantic-conventions
  24. OpenTelemetry, semantic-conventions-genai reference README, fetched 2026-11-06 — https://github.com/open-telemetry/semantic-conventions-genai/blob/main/reference/README.md

JSON · Markdown · OKF v0.2