$ fssg build --deterministic --validate |

How to Version AI Agent Telemetry Schemas

AI Engineering

An AI agent trace is only useful while its vocabulary still means what the reviewer thinks it means.

That sounds obvious, yet telemetry migrations are often treated as harmless renames. An emitter upgrades. provider becomes gen_ai.provider.name. One framework emits a tool request as an event; another records the actual execution as a span. A dashboard keeps rendering both as “tool calls.” Nothing crashes. The graph still looks complete. Its semantics have drifted.

I treat an agent telemetry schema as a versioned interface, not as a bag of convenient attributes. The practical artifact is a telemetry compatibility envelope: a small record that binds every emitted trace to the schema revision, emitter profile, translation version, and content-capture policy that produced it.

Trace identity and trace meaning are different contracts

W3C Trace Context standardizes how services propagate identifiers through traceparent and tracestate. That solves a critical interoperability problem: components can agree that two operations belong to one distributed trace.

It does not make their domain vocabulary identical.

OpenTelemetry's GenAI work defines conventions for model clients, agents, tools, MCP, events, and metrics. The project now lives in a dedicated repository whose human-readable documentation is generated in part from YAML models. This is exactly why I want a boundary around it: a living upstream specification is valuable, but a production query must not silently inherit every upstream movement.

A trace ID answers which execution? A semantic convention answers what kind of operation? My compatibility envelope answers under which interpretation?

{
  "telemetry_profile": "agent-runtime-v3",
  "semantic_source": "open-telemetry/semantic-conventions-genai",
  "semantic_revision": "<pinned commit>",
  "emitter": "runtime-adapter@2.4.0",
  "translation": "genai-normalizer@3",
  "content_policy": "metadata-only",
  "golden_fixture_set": "agent-spans-2026-07"
}

The commit and versions are examples of fields, not claims about a deployed stack. Their job is to make interpretation reproducible.

Put unstable vocabulary behind one translation boundary

Application code should not scatter upstream telemetry keys across planners, model clients, tool runners, and MCP adapters. I want each component to emit an internal event with stable meaning:

ModelInvocationStarted
ToolExecutionStarted
AgentDelegationStarted
ArtifactValidated

One adapter translates those events into the selected OpenTelemetry profile. If an upstream attribute changes, the migration touches the adapter and its fixtures—not every execution path.

This is the same discipline I described for provider adapters that must not think. A telemetry adapter may map vocabulary; it must not repair history or invent semantics. If an old emitter did not distinguish “model requested a tool” from “runtime executed the tool,” the normalizer cannot manufacture that distinction later. It should preserve an explicit unknown or legacy state.

That boundary also prevents dashboards from becoming an accidental specification. A panel is a consumer. It should query the normalized contract, not guess across five generations of raw attributes.

Version four things, not one

Pinning a package version is necessary but incomplete. I version four independent dimensions:

Dimension What can change Failure if hidden
Semantic revision names, required fields, operation boundaries old and new spans appear equivalent
Emitter profile which events are produced and where missing spans look like missing activity
Translation version mapping from internal events to external schema queries combine incompatible meanings
Content policy metadata, prompts, results, hashes, redaction privacy and debugging assumptions diverge

Content policy deserves equal status. Two traces with the same span names are not operationally equivalent if one contains message bodies and another intentionally records metadata only. “No prompt found” may mean a failed capture, a privacy policy, or an emitter that never supported content. The envelope removes that ambiguity without putting sensitive content into the identifier itself.

This connects to joining traces with real artifacts: correlation is strongest when a trace points to immutable artifact identities. But a join is trustworthy only if the fields on both sides retain stable semantics.

Migrate with dual emission, golden traces, and a deadline

For a schema migration, I use a bounded sequence:

  1. Pin the old and new semantic revisions.
  2. Generate representative golden traces for model calls, tool success, tool failure, delegation, cancellation, and missing content.
  3. Run the translator in dual mode in staging.
  4. Compare normalized operations, parent-child relationships, required attributes, redaction, and cardinality.
  5. Move consumers to the new normalized profile.
  6. Stop dual emission on a declared date and retain the migration map.

The golden trace is the key artifact. Unit tests can prove that an attribute exists. A golden trace proves the shape of an execution: which span is the parent, whether the tool actually ran, how failure is represented, and which content was deliberately omitted.

I would include negative fixtures too. A malformed traceparent must not be accepted as valid correlation. A tool request without an execution span must not be displayed as a successful effect. An unknown legacy operation must not be promoted to a modern, more precise type. These cases protect meaning, not just serialization.

This is related to the tamper-evident provenance chain, but the jobs differ. Provenance protects the identity and order of evidence. Schema versioning protects the interpretation of that evidence. A perfectly intact record can still mislead if its vocabulary changed underneath the query.

Compatibility has a limit

I do not believe every telemetry generation should remain query-compatible forever. Compatibility layers accumulate ambiguity, and ambiguity is especially dangerous in agent systems because a single label can collapse planning, authorization, tool invocation, and external effect into one colorful node.

The envelope makes deliberate incompatibility possible. A query can reject profiles it does not understand. A migration can mark a field as non-comparable. Historical dashboards can keep their original translator. New dashboards can demand the newer contract.

The limitation is straightforward: this mechanism does not prove that instrumentation covers every relevant operation, nor does it make the current GenAI conventions stable. It only makes the chosen revision and local interpretation explicit. Coverage still needs tests; truth still needs artifact joins; sensitive capture still needs policy.

Observability is not a picture of reality. It is a typed projection of execution. If the types can move, their version must travel with the trace.

Sources

FACET AI CLI Terminal
facet@ai:~$