Evals
OpenTelemetry GenAI conventions
Standard attribute names for LLM spans so traces work across tools.
What it is and why it exists
OpenTelemetry’s generative-AI semantic conventions define span names and attributes (gen_ai.operation.name, gen_ai.request.model, token usage and so on) for model calls, tool calls and agents. Instrumenting to the standard avoids lock-in to one tracing vendor.
Quick prototype
Vendor SDK only.
In production, at scale
OTel instrumentation (OpenLLMetry, OpenInference or vendor exporters) to a collector, fanned out to your tracing backend(s).
Vendors and tools
| OpenTelemetry semantic conventions for GenAI | The spec |
|---|---|
| OpenLLMetry / OpenInference | Instrumentation libraries |
On AWS: AWS Distro for OpenTelemetry (ADOT); AgentCore Observability emits OTel-compatible telemetry.
How it fails
- Each team inventing its own span attributes
What the interviewer asks next
Why care about the standard in an interview?
It shows you’d build observability that survives a vendor change and joins LLM spans with the rest of your distributed traces.