Overview
Atla Insights captures generative AI interactions using the OpenTelemetry GenAI Semantic Conventions, an emerging standard for observing AI systems. This guide explains how to interpret and work with the GenAI event data available through our platform.What are OpenTelemetry GenAI Events?
OpenTelemetry GenAI events are structured telemetry data that capture the inputs, outputs, and metadata of generative AI operations. They provide a standardized way to observe AI system behavior across different providers (OpenAI, Anthropic, etc.) while maintaining consistent data structures. Each event represents a discrete piece of an AI interaction:- Message events capture individual messages in a conversation
- Choice events capture the AI’s response options and selections
Standard Background
The OpenTelemetry GenAI semantic conventions are actively developed by major AI and observability companies including OpenAI, Google, Microsoft, and Amazon. The standard aims to:- Provide consistent telemetry across AI providers
- Enable privacy-conscious AI observability
- Support both simple chat and complex agent workflows
- Allow vendor-specific extensions while maintaining interoperability
Event Types and Structure
Message Events
Message events follow the patterngen_ai.{role}.message
and capture conversation flow:
gen_ai.system.message
System prompts and instructions that set AI behavior.
gen_ai.user.message
User inputs to the AI system.
gen_ai.assistant.message
AI responses, including tool/function calls.
gen_ai.tool.message
Results from tool/function executions.
Choice Events
gen_ai.choice
Captures AI response selection and metadata.
Common Metadata
All events include:event_timestamp
: ISO 8601 timestampattributes
: Containsgen_ai.system
(required) and other metadatasource
: Optional span ID reference
Relationship to OpenAI’s Data Model
OpenTelemetry GenAI events map closely to OpenAI’s chat completion structure:OpenAI → OpenTelemetry Mapping
OpenAI Messages Array:gen_ai.choice
events with finish reasons, tool calls, and response metadata.
Interpreting Event Data
Conversation Flow
Reconstruct conversations by ordering message events by timestamp:- System messages establish context
- User/assistant messages alternate in conversation
- Tool messages provide function call results
- Choice events show response selection process
Tool/Function Usage
Track AI function calling through the event sequence:gen_ai.assistant.message
withtool_calls
→ AI requests function executiongen_ai.tool.message
with matchingid
→ Function execution result- Next
gen_ai.assistant.message
→ AI processes function result