all answers

Frameworks and tooling

OpenTelemetry GenAI 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. They fix the span names and the attribute names, so a trace from one framework means the same thing as a trace from another, and a backend can read both without a per-framework adapter.

The shape is one span per operation. An attribute called gen_ai.operation.name says what kind of operation it was: a chat call, an embedding, a retrieval, a tool execution, an agent invocation. An LLM span carries the provider, the model name, and the token counts. A tool span carries the tool's name and the id of that particular call. Grouping spans into a session or a user uses the general OpenTelemetry attributes, session.id and user.id, not a GenAI-specific one.

Two things to know before building on them. They are not stable yet. Every GenAI span, metric, and attribute is still marked as in development, and names have already changed once: gen_ai.system became gen_ai.provider.name, so both spellings are live in the wild and anything reading them has to accept either. And the message content is opt-in. The input and output messages are off by default because they carry whatever the user typed, and how they should be recorded, as span attributes or as separate events, is the part still moving.

Export is OTLP, over HTTP or gRPC. The payload is the same either way; pick whichever your collector already speaks.

15 questions

Answered, plainly.

What are the OpenTelemetry GenAI semantic conventions?A shared span vocabulary for LLM calls, tool calls, and agent steps (invoke_agent among them), all still marked development-stability, not stable.answer →Are LLM prompts and completions captured by OpenTelemetry's GenAI conventions by default?No. gen_ai.input.messages and gen_ai.output.messages both carry an Opt-In requirement level, so a compliant instrumentation ships with them off by default.answer →Why was gen_ai.system renamed to gen_ai.provider.name?To fit a naming pattern OpenTelemetry adopted everywhere: system-identifying fields follow system.thing.property, freeing a provider namespace for later fields.answer →Which attributes should an agent emit on an LLM span?Only gen_ai.operation.name and gen_ai.provider.name are required; token counts and response details are recommended, and message content is opt-in.answer →How do I capture prompts and completions without leaking PII?Turn on the opt-in message attributes, then redact before export; the spec lets instrumentation filter content but doesn't redact anything on your behalf.answer →Does OpenTelemetry identify the top-level agent in a multi-agent system?A new, still-in-development gen_ai.main_agent resource entity names the one persistent top-level agent in a process, not the subagents inside a run.answer →Does OpenTelemetry record which agent skill caused a bad response?As of September 2026, yes: a new gen_ai.skill.* attribute set records which skill an agent loaded, where it came from, and whether its script failed.answer →Why did OpenTelemetry split its token-usage metric into separate counters?Because the metric it replaced mixed input and output tokens into one number and had no way to count cache or reasoning tokens at all.answer →Does OpenTelemetry capture the model's output when a GenAI call ends in an error?Only if the call actually produced output, including a partial streamed response, before it failed; instrumentation is told not to invent output for a call that generated none.answer →Does OpenTelemetry's token-usage metric still count a failed GenAI call?Yes. An OpenTelemetry change merged October 9, 2026 makes its token metrics record every GenAI call, failed ones included, with a 0 when no usage comes back.answer →Does OpenTelemetry's GenAI operation-details event capture prompts by default?No. The event itself became Recommended on October 9, 2026; the prompt and completion fields inside it still carry their own separate Opt-In requirement.answer →Why does OpenTelemetry have a separate duration metric just for inference calls?Because the old metric covered every GenAI call type; a change merged October 6, 2026 gave inference calls their own gen_ai.client.inference.duration metric.answer →Does OpenTelemetry's tool-call-id attribute come from the model, or from the client library?The model's own id, when the provider supplies one: OpenTelemetry's tool-call-id attribute is meant to carry that, not one the instrumentation library invented.answer →Does OpenTelemetry trace a handoff between two agents?Yes, as of October 2026. A handoff is an execute_tool span carrying gen_ai.transfer.mode, return_to_caller or pass_control, and the target agent's name.answer →What metrics do the OpenTelemetry GenAI semantic conventions define?22 metrics in four groups: token usage, client latency per operation type, model-server latency, and agent runs, tools, and retrieval. All are still in development.answer →

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