What the Observability Contract Covers: Spans, Attributes, Schema URL
OpenTelemetry standardizes generative AI calls into three span kinds: model-invocation spans, tool-call spans, and agent spans. The attribute registry carries entries like gen_ai.tool.call.id for the tool-call identifier and gen_ai.tool.definitions for the tool definitions passed to the model, and every span is supposed to pin a reference version through schema_url. On June 12, 2026, release v1.42.0 split this convention out of the core semantic-conventions repository into its own repo, semantic-conventions-genai.
The catch is stability. Per an explainer dated September 2026, the only Stable attributes on a gen_ai.* span, metric, or attribute are error.type, server.address, and server.port — all three inherited from the core conventions — and everything else sits at Development. Even the tool-call identifier name isn't settled across SDKs: one Rust crate still defines gen_ai.tool.call_id, a naming drift that's already live in the wild.
Why a Gate Now: Multi-Agent Attributes Are Even Less Settled
Model and tool attributes firmed up considerably in early 2026, but agent and multi-agent semantics haven't. Sub-agent delegation, planning steps, and evaluation results each get recorded under different attributes depending on the vendor. Datadog ingests traces that follow the 1.37-and-later OpenTelemetry conventions, and Honeycomb's docs tell teams to add tool name, call ID, and parameters to agent spans — but both layer on their own naming where the spec stays silent. A harness that hardcodes the official attribute names into dashboards and alert rules will see aggregates quietly drop to zero, or cost attribution break, the moment a future release renames one.
From Build to Recovery: Running the Observability-Contract Gate
Set the targets as numbers. Ship only once span coverage for model calls, tool calls, and sub-agent delegation each clears 95%, cost and latency attributes land on 100% of spans, and a schema change gets detected and routed to an owner within 24 hours.
The most common failure is baking whatever attribute name the vendor SDK happens to return straight into a dashboard query. When gen_ai.tool.call_id becomes gen_ai.tool.call.id in a later release, the alert rule itself keeps passing with no error, while the aggregation query starts returning empty — the outage shows up as silent data loss, not a page.
The second failure is recording multi-agent delegation under attributes that differ team to team, which makes it impossible to trace responsibility between agents during a regression review or an incident. The fix is a translation layer in the ingestion pipeline: map the SDK's raw attribute into an internal standard name (say, s34.agent.delegate_to) instead of storing the raw name directly, and keep the original only as a reference field — so a future SDK rename costs one line in a mapping table, not a dashboard rewrite.
Before shipping, run a span-schema test that checks required attributes — model name, tool name, token counts, schema_url — are never empty, and keep any custom attributes in their own namespace (s34.*, for instance) so they never collide with the standard ones.
Exclude error spans from sampling so they're kept at 100%, and mask any PII that can land in tool-call arguments before ingestion — the standard conventions say nothing about PII masking, so that responsibility sits with the harness alone.
Check the semantic-conventions-genai release notes monthly for attribute renames and new Stable promotions, and diff what you're actually collecting against the registry every quarter, sharing the drift list with the team.
Takeaways to Apply Right Away
What matters at this stage isn't waiting for a finished standard — it's signing a contract that absorbs change before the standard arrives. Pin schema_url on every span, keep a translation layer between vendor attribute names and your internal ones, and track span coverage, cost-tagging rate, and drift-detection time as numbers, and Development-stage instability stops propagating all the way to the dashboard.
References
Semantic conventions for GenAI agent and framework spans — OpenTelemetry
Gen AI attribute registry — OpenTelemetry
Ask AI about this article
The assistant has read this article. Ask anything — it answers from the text and says so when something isn't in it.
Loading the chat…