# Semantic conventions for generative AI systems

LLMS index: [llms.txt](/llms.txt)

---

**Status**: [Development][DocumentStatus]

> [!IMPORTANT]
>
> Existing GenAI instrumentations that are using
> [v1.36.0 of this document](https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/gen-ai/README.md)
> (or prior):
>
> * SHOULD NOT change the version of the GenAI conventions that they emit by default.
>   Conventions include, but are not limited to, attributes, metric, span and event names,
>   span kind and unit of measure.
> * SHOULD introduce an environment variable `OTEL_SEMCONV_STABILITY_OPT_IN`
>   as a comma-separated list of category-specific values. The list of values
>   includes:
>   * `gen_ai_latest_experimental` - emit the latest experimental version of
>     GenAI conventions (supported by the instrumentation) and do not emit the
>     old one (v1.36.0 or prior).
>   * The default behavior is to continue emitting whatever version of the GenAI
>     conventions the instrumentation was emitting (1.36.0 or prior).
>
> This transition plan will be updated to include stable version before the
> GenAI conventions are marked as stable.

Semantic conventions for Generative AI operations are defined for the following signals:

* [Events](gen-ai-events.md): Semantic Conventions for Generative AI inputs and outputs - *events*.
* [Metrics](gen-ai-metrics.md): Semantic Conventions for Generative AI operations - *metrics*.
* [Model spans](gen-ai-spans.md): Semantic Conventions for Generative AI model operations - *spans*.
* [Agent spans](gen-ai-agent-spans.md): Semantic Conventions for Generative AI agent operations - *spans*.

Technology specific semantic conventions are defined for the following GenAI system:

* [Anthropic](./anthropic.md): Semantic Conventions for Anthropic.
* [Azure AI Inference](./azure-ai-inference.md): Semantic Conventions for Azure AI Inference.
* [AWS Bedrock](./aws-bedrock.md): Semantic Conventions for AWS Bedrock.
* [OpenAI](./openai.md): Semantic Conventions for OpenAI.

See also:

* [Model Context Protocol](./mcp.md): Semantic Conventions for [MCP](https://modelcontextprotocol.io)

[DocumentStatus]: /docs/specs/otel/document-status

---

Section pages:

- [Semantic Conventions for GenAI agent and framework spans](/docs/specs/semconv/gen-ai/gen-ai-agent-spans/)
- [Semantic conventions for Anthropic client operations](/docs/specs/semconv/gen-ai/anthropic/)
- [Semantic conventions for AWS Bedrock operations](/docs/specs/semconv/gen-ai/aws-bedrock/)
- [Semantic conventions for Azure AI Inference client operations](/docs/specs/semconv/gen-ai/azure-ai-inference/)
- [Semantic conventions for Generative AI events](/docs/specs/semconv/gen-ai/gen-ai-events/)
- [LLM call examples](/docs/specs/semconv/gen-ai/non-normative/examples-llm-calls/)
- [Semantic conventions for generative AI metrics](/docs/specs/semconv/gen-ai/gen-ai-metrics/)
- [Semantic conventions for Model Context Protocol (MCP)](/docs/specs/semconv/gen-ai/mcp/)
- [Semantic conventions for OpenAI client operations](/docs/specs/semconv/gen-ai/openai/)
- [Semantic conventions for generative client AI spans](/docs/specs/semconv/gen-ai/gen-ai-spans/)
