Skip to content

Lesson 6 of 11 · 4 min read

OpenTelemetry for Agents

OpenTelemetry's GenAI semantic conventions, now maintained in their own repository and still in Development status, define how to trace agents: create_agent and invoke_agent spans (named for the operation and the agent), model-call and tool-execution spans beneath them, and attributes such as gen_ai.operation.name, gen_ai.provider.name, gen_ai.agent.name, gen_ai.request.model, gen_ai.conversation.id and token usage. Message content, system instructions and tool definitions are opt-in because they may hold sensitive data. Because names can still change, teams map their own stable trace schema onto the conventions at export.

Premium lessonReviewed By the AIAgentInterviews editorial teamProduct details checked · What changed
Get full Premium access · $25

All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.

6 months · One payment · No auto-renewal

Practise it as an interviewer asks it

From the blog

Course lessons that teach this

Related lessons