Skip to content

Latest commit

 

History

History

reference

README.md

Semantic Conventions GenAI Reference Implementations

Validates OpenTelemetry Semantic Conventions for Generative AI against real LLM client libraries in Python, showing which libraries support which attributes.

Each library under scenarios/ contains a small reference implementation (scenario.py) that exercises the SDK against a deterministic local mock server and emits OpenTelemetry spans, metrics, and logs, plus a conformance.yaml saying how to run it. The conformance runner validates the captured telemetry against the semantic conventions in ../model/ using OTel Weaver and writes the per-library results to scenarios/<library>/data.json, which feed the status reports below.

See CONTRIBUTING.md for how to run scenarios and add new libraries.

Reports

Generated from committed scenarios/*/data.json files. Do not edit this section by hand. Run uv run update-reports to regenerate.

Spans

Span Libraries
A2A Client a2a-python
A2A Server a2a-python
MCP Client mcp
MCP Server mcp
Create Agent anthropic, aws-bedrock-agent, azure-ai-foundry, google-genai, mistralai, openai-assistants
Invoke Agent Client aws-bedrock-agent, azure-ai-foundry, google-genai, openai-assistants
Invoke Agent Internal adk_a2a, agent-framework, autogen, crewai, google-adk, langchain, openai-agents, pydantic-ai
Plan crewai, langchain
Inference adk_a2a, agent-framework, anthropic, aws-bedrock, azure-ai-inference, azure-openai, claude-agent-sdk, cohere, google-genai, groq, litellm, mistralai, openai, vertexai
Realtime Inference google-genai, openai
User Speech google-genai, openai
Embeddings aws-bedrock, azure-ai-inference, azure-openai, cohere, google-genai, litellm, mistralai, openai
Retrieval haystack, langchain, llamaindex
Fetch Response openai
Memory aws-bedrock-agentcore, google-adk
Execute Tool agent-framework, autogen, crewai, google-adk, google-genai, langchain, llamaindex, openai-agents, openai-assistants, pydantic-ai, vertexai

Events

Event Libraries
Realtime Session Started google-genai, openai
Realtime Session Ended google-genai, openai
Client Embeddings Exception openai
Client Fetch Response Exception openai
Client Inference Exception openai
Inference Operation Details anthropic, aws-bedrock, azure-ai-inference, cohere, google-genai, groq, litellm, mistralai, openai, vertexai
Client Invoke Agent Exception aws-bedrock-agent, azure-ai-foundry
Evaluation Result azure-ai-evaluation, deepeval, dspy
Execute Tool Exception openai-agents
Invoke Agent Exception openai-agents

Entities

Entity Libraries
Main Agent adk_a2a

Metrics

Metric Libraries
Client Inference Usage Input Tokens anthropic, google-genai, groq, openai
Client Inference Usage Output Tokens anthropic, google-genai, groq, openai
Client Inference Cache Read Input Tokens anthropic, google-genai, groq, openai
Client Inference Cache Write Input Tokens anthropic, openai
Client Inference Reasoning Output Tokens google-genai, groq, openai
Client Inference Operation Input Tokens anthropic, azure-openai, google-genai, groq, openai
Client Inference Operation Output Tokens anthropic, azure-openai, google-genai, groq, openai
Client Operation Duration (none)
Client Inference Duration agent-framework, anthropic, groq
Client Inference Time To First Chunk anthropic, openai
Client Inference Time Per Output Chunk openai
Client Embeddings Duration aws-bedrock, azure-ai-inference, azure-openai, cohere, google-genai, litellm, mistralai, openai
Client Embeddings Operation Input Tokens aws-bedrock, azure-ai-inference, azure-openai, cohere, litellm, mistralai, openai
Server Request Duration transformers
Server Time To First Token transformers
Server Time Per Output Token transformers
Execute Tool Duration google-adk
Retrieval Duration haystack, langchain, llamaindex
Client Invoke Agent Duration aws-bedrock-agent, azure-ai-foundry, google-genai, openai-assistants
Invoke Agent Inference Calls adk_a2a, google-adk
Invoke Agent Tool Calls adk_a2a, google-adk
MCP Client Operation Duration mcp
MCP Server Operation Duration mcp
MCP Client Session Duration mcp
MCP Server Session Duration mcp