What are the OpenTelemetry GenAI semantic conventions?

The OpenTelemetry GenAI semantic conventions are a shared vocabulary for describing an LLM call, a tool call, or an agent step as a span, still marked development-stability, so a trace from one framework reads the same as another’s. Each span carries gen_ai.operation.name, one of a fixed set of values like chat, execute_tool, and invoke_agent, plus the provider and model name and token counts for an LLM call, or the tool’s name and call id.

None of it is stable yet. Every GenAI span, metric, and attribute still carries OpenTelemetry’s “development” marker, and a name has already changed once: gen_ai.system became gen_ai.provider.name. Anything reading these fields today has to tolerate that churn rather than assume today’s names survive the next revision.

See also: How do I trace an AI agent?

published · updated

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card