# OpenInference > OpenInference is a set of semantic conventions and instrumentation libraries, built on OpenTelemetry, for tracing AI applications: their LLM calls, agents, tool use, retrieval and embeddings. Its traces work with Arize Phoenix, Arize AX and any OpenTelemetry backend. The specification defines the span kinds and attributes every OpenInference trace uses. The instrumentation packages follow it for Python, JavaScript, Java and Go; this site documents the Python and JavaScript APIs. The source is at https://github.com/Arize-ai/openinference. Every page here is also markdown, at its URL plus `.md`; the links below are to those. https://openinf.dev/llms-full.txt is the Project and Specification pages in one file. ## Project - [README](https://openinf.dev/index.html.md): What OpenInference is, and every instrumentation package for Python, JavaScript, Java and Go, with what it instruments ## Specification - [Specification overview](https://openinf.dev/spec/index.html.md): OpenInference is a semantic convention specification for AI application observability, built on OpenTelemetry. - [Traces and Spans](https://openinf.dev/spec/general/traces.html.md): OpenInference uses the OpenTelemetry trace data model unchanged. - [Span Kinds](https://openinf.dev/spec/general/span-kinds.html.md): The openinference.span.kind attribute is required on every OpenInference span. - [Attribute Conventions](https://openinf.dev/spec/attributes/conventions.html.md): These rules apply to every OpenInference attribute. - [Semantic Conventions](https://openinf.dev/spec/attributes/semantic-conventions.html.md): The semantic conventions define the keys and values that describe commonly observed concepts and operations in AI applications. - [Context Attributes](https://openinf.dev/spec/attributes/context.html.md): Context attributes describe the request a span belongs to rather than the operation itself: which session and user it serves, the application's metadata and tags, and the prompt template in use. - [LLM Spans](https://openinf.dev/spec/spans/llm.html.md): An LLM span (openinference.span.kind = "LLM") records one call to a large language model, such as a chat completion or a text completion request to OpenAI, Anthropic, or Cohere. - [Embedding Spans](https://openinf.dev/spec/spans/embedding.html.md): Embedding spans capture operations that convert text or token IDs into dense float vectors for semantic search, clustering, and similarity comparison. - [Decision Spans](https://openinf.dev/spec/spans/decision.html.md): Decision spans capture calls to a decision model: a model that scores or selects among candidate options supplied in the request rather than generating free-form text. - [Messages](https://openinf.dev/spec/content/messages.html.md): Chat APIs exchange lists of messages. - [Multimodal Content](https://openinf.dev/spec/content/multimodal.html.md): This document describes how message content arrays represent multimodal content (text, images, audio, video, and documents such as PDFs or inline text) in OpenInference spans. - [Tool and Function Calling](https://openinf.dev/spec/content/tool-calling.html.md): This page describes how tool and function calling is represented in OpenInference spans: the tools advertised to an LLM span, the tool calls the model generates, and the results sent back. - [Annotations and Evaluations](https://openinf.dev/spec/feedback/annotations.html.md): Human, LLM, and code judges produce feedback about generative applications. - [Trace Configuration](https://openinf.dev/spec/configuration/trace-config.html.md): Trace configuration controls how much an OpenInference instrumentation records. - [Data Masking](https://openinf.dev/spec/configuration/data-masking.html.md): Prompts, completions, retrieved documents, and media frequently contain personal or sensitive information. - [Blob Upload](https://openinf.dev/spec/configuration/blob-upload.html.md): Large binary content captured as base64 data URIs can exceed span attribute and OTLP payload limits and inflate backend storage. ## Python API - [Python API overview](https://openinf.dev/python/index.html.md): API reference for the OpenInference Python packages: the core instrumentation utilities, the semantic conventions, and every instrumentor. - [openinference-instrumentation](https://openinf.dev/python/openinference-instrumentation.html.md): OpenInference instrumentation utilities - [openinference-semantic-conventions](https://openinf.dev/python/openinference-semantic-conventions.html.md): OpenInference Semantic Conventions - [openinference-instrumentation-ag2](https://openinf.dev/python/openinference-instrumentation-ag2.html.md): OpenInference instrumentation for AG2 - [openinference-instrumentation-agent-framework](https://openinf.dev/python/openinference-instrumentation-agent-framework.html.md): OpenInference span processor for Microsoft Agent Framework - transforms native OpenTelemetry spans to OpenInference format - [openinference-instrumentation-agentspec](https://openinf.dev/python/openinference-instrumentation-agentspec.html.md): OpenInference Open Agent Spec Instrumentation - [openinference-instrumentation-agno](https://openinf.dev/python/openinference-instrumentation-agno.html.md): OpenInference Agno Instrumentation - [openinference-instrumentation-anthropic](https://openinf.dev/python/openinference-instrumentation-anthropic.html.md): OpenInference Anthropic Instrumentation - [openinference-instrumentation-autogen](https://openinf.dev/python/openinference-instrumentation-autogen.html.md): Deprecated compatibility package for OpenInference AG2 instrumentation - [openinference-instrumentation-autogen-agentchat](https://openinf.dev/python/openinference-instrumentation-autogen-agentchat.html.md): OpenInference Autogen-Agentchat Instrumentation - [openinference-instrumentation-bedrock](https://openinf.dev/python/openinference-instrumentation-bedrock.html.md): OpenInference Bedrock Instrumentation - [openinference-instrumentation-beeai](https://openinf.dev/python/openinference-instrumentation-beeai.html.md): OpenInference BeeAI Instrumentation - [openinference-instrumentation-claude-agent-sdk](https://openinf.dev/python/openinference-instrumentation-claude-agent-sdk.html.md): OpenInference Claude Agent SDK Instrumentation - [openinference-instrumentation-cohere](https://openinf.dev/python/openinference-instrumentation-cohere.html.md): OpenInference Cohere Instrumentation - [openinference-instrumentation-crewai](https://openinf.dev/python/openinference-instrumentation-crewai.html.md): OpenInference Crewai Instrumentation - [openinference-instrumentation-dspy](https://openinf.dev/python/openinference-instrumentation-dspy.html.md): OpenInference DSPy Instrumentation - [openinference-instrumentation-google-adk](https://openinf.dev/python/openinference-instrumentation-google-adk.html.md): OpenInference Google ADK Instrumentation - [openinference-instrumentation-google-genai](https://openinf.dev/python/openinference-instrumentation-google-genai.html.md): OpenInference Google GenAI Instrumentation - [openinference-instrumentation-groq](https://openinf.dev/python/openinference-instrumentation-groq.html.md): OpenInference Groq Instrumentation - [openinference-instrumentation-guardrails](https://openinf.dev/python/openinference-instrumentation-guardrails.html.md): OpenInference Guardrails Instrumentation - [openinference-instrumentation-haystack](https://openinf.dev/python/openinference-instrumentation-haystack.html.md): OpenInference Haystack Instrumentation - [openinference-instrumentation-instructor](https://openinf.dev/python/openinference-instrumentation-instructor.html.md): OpenInference Instructor Instrumentation - [openinference-instrumentation-langchain](https://openinf.dev/python/openinference-instrumentation-langchain.html.md): OpenInference LangChain Instrumentation - [openinference-instrumentation-litellm](https://openinf.dev/python/openinference-instrumentation-litellm.html.md): OpenInference liteLLM Instrumentation - [openinference-instrumentation-llama-index](https://openinf.dev/python/openinference-instrumentation-llama-index.html.md): OpenInference LlamaIndex Instrumentation - [openinference-instrumentation-mcp](https://openinf.dev/python/openinference-instrumentation-mcp.html.md): OpenInference MCP Instrumentation - [openinference-instrumentation-mistralai](https://openinf.dev/python/openinference-instrumentation-mistralai.html.md): OpenInference Mistral AI Instrumentation - [openinference-instrumentation-ollama](https://openinf.dev/python/openinference-instrumentation-ollama.html.md): OpenInference Ollama Instrumentation - [openinference-instrumentation-openai](https://openinf.dev/python/openinference-instrumentation-openai.html.md): OpenInference OpenAI Instrumentation - [openinference-instrumentation-openai-agents](https://openinf.dev/python/openinference-instrumentation-openai-agents.html.md): OpenInference OpenAI Agents Instrumentation - [openinference-instrumentation-openlit](https://openinf.dev/python/openinference-instrumentation-openlit.html.md): OpenInference OpenLIT Instrumentation - [openinference-instrumentation-openllmetry](https://openinf.dev/python/openinference-instrumentation-openllmetry.html.md): OpenInference OpenLLMetry Instrumentation - [openinference-instrumentation-pipecat](https://openinf.dev/python/openinference-instrumentation-pipecat.html.md): OpenInference Pipecat Instrumentation - [openinference-instrumentation-portkey](https://openinf.dev/python/openinference-instrumentation-portkey.html.md): OpenInference Portkey AI Instrumentation - [openinference-instrumentation-pydantic-ai](https://openinf.dev/python/openinference-instrumentation-pydantic-ai.html.md): OpenInference PydanticAI Instrumentation - [openinference-instrumentation-smolagents](https://openinf.dev/python/openinference-instrumentation-smolagents.html.md): OpenInference smolagents Instrumentation - [openinference-instrumentation-strands-agents](https://openinf.dev/python/openinference-instrumentation-strands-agents.html.md): OpenInference span processor for Strands Agents - transforms native OpenTelemetry spans to OpenInference format - [openinference-instrumentation-together](https://openinf.dev/python/openinference-instrumentation-together.html.md): OpenInference Together AI Instrumentation - [openinference-instrumentation-typesafe](https://openinf.dev/python/openinference-instrumentation-typesafe.html.md): OpenInference TypeSafe AI Instrumentation - [openinference-instrumentation-vertexai](https://openinf.dev/python/openinference-instrumentation-vertexai.html.md): OpenInference VertexAI Instrumentation ## JavaScript API - [JavaScript API overview](https://openinf.dev/js/index.html.md): API reference for the OpenInference JavaScript packages: the core tracing utilities, the semantic conventions, every instrumentation, and the integrations. - [@arizeai/openinference-core](https://openinf.dev/js/openinference-core.html.md): OpenInference Core provides utilities shared by all OpenInference SDK packages. - [@arizeai/openinference-semantic-conventions](https://openinf.dev/js/openinference-semantic-conventions.html.md): This package provides OpenInference semantic conventions for tracing of LLM Applications. - [@arizeai/openinference-instrumentation-anthropic](https://openinf.dev/js/openinference-instrumentation-anthropic.html.md): OpenInference instrumentation for Anthropic - [@arizeai/openinference-instrumentation-bedrock](https://openinf.dev/js/openinference-instrumentation-bedrock.html.md): OpenInference instrumentation for AWS Bedrock - [@arizeai/openinference-instrumentation-bedrock-agent-runtime](https://openinf.dev/js/openinference-instrumentation-bedrock-agent-runtime.html.md): OpenInference instrumentation for AWS Bedrock Agent Runtime - [@arizeai/openinference-instrumentation-beeai](https://openinf.dev/js/openinference-instrumentation-beeai.html.md): OpenInference Instrumentation for BeeAI framework - [@arizeai/openinference-instrumentation-claude-agent-sdk](https://openinf.dev/js/openinference-instrumentation-claude-agent-sdk.html.md): OpenInference instrumentation for Claude Agent SDK - [@arizeai/openinference-instrumentation-langchain](https://openinf.dev/js/openinference-instrumentation-langchain.html.md): OpenInference Instrumentation for LangChain.js - [@arizeai/openinference-instrumentation-langchain-v0](https://openinf.dev/js/openinference-instrumentation-langchain-v0.html.md): OpenInference Instrumentation for LangChain.js Version 0.X - [@arizeai/openinference-instrumentation-mcp](https://openinf.dev/js/openinference-instrumentation-mcp.html.md): OpenInference instrumentation for MCP - [@arizeai/openinference-instrumentation-openai](https://openinf.dev/js/openinference-instrumentation-openai.html.md): OpenInference instrumentation for OpenAI - [@arizeai/openinference-instrumentation-openai-agents](https://openinf.dev/js/openinference-instrumentation-openai-agents.html.md): OpenInference instrumentation for OpenAI Agents SDK - [@arizeai/openinference-instrumentation-typesafe](https://openinf.dev/js/openinference-instrumentation-typesafe.html.md): OpenInference instrumentation for the TypeSafe AI SDK - [@arizeai/openinference-genai](https://openinf.dev/js/openinference-genai.html.md): OpenInference utilities for converting OpenTelemetry GenAI span attributes to OpenInference span attributes - [@arizeai/openinference-tanstack-ai](https://openinf.dev/js/openinference-tanstack-ai.html.md): OpenInference middleware for TanStack AI - [@arizeai/openinference-vercel](https://openinf.dev/js/openinference-vercel.html.md): OpenInference utilities for ingesting Vercel AI SDK spans ## Optional - [Mission](https://openinf.dev/mission.html.md): Why OpenInference exists: we instrument agents as soon as they matter, and bring what works back to OpenTelemetry. - [News: Introducing openinf.dev](https://openinf.dev/news/introducing-openinf-dev.html.md): OpenInference has a website, openinf.dev. Important project updates will be posted here.