Python APIOverview

Core

Instrumentation

Python API

Reference for the 39 OpenInference packages on PyPI, generated from their source.

Packages

Each instrumentation package traces one library: install it, call its instrumentor's instrument() once at startup, and the library's calls make spans that follow the specification. They are built on two core packages:openinference-instrumentation, for configuring what spans record (TraceConfig), adding context such as session and user IDs, and tracing your own code; andopeninference-semantic-conventions, the attribute names as constants.

# The instrumentor for your library, e.g. OpenAI. It brings in the core packages.
pip install openinference-instrumentation-openai

Core

PackageDescriptionVersion
openinference-instrumentationOpenInference instrumentation utilities0.1.79
openinference-semantic-conventionsOpenInference Semantic Conventions0.1.46

Instrumentation

PackageInstrumentsVersion
ag2ag2>=0.14.0,<1.0.00.1.19
agent-frameworkagent-framework-core >= 1.0.0, agent-framework-openai >= 1.0.00.1.17
agentspecopentelemetry-sdk, pyagentspec >= 26.1.00.1.22
agnoagno>=2.7.21.2.1
anthropicanthropic >= 1.8.03.3.6
autogenautogen>=0.5.0,<1.0.00.1.16
autogen-agentchatautogen-agentchat >= 0.5.10.1.29
bedrockboto3 >= 1.40.460.1.67
beeaibeeai-framework >= 0.1.510.1.36
claude-agent-sdkclaude-agent-sdk>=0.1.450.1.29
coherecohere >= 5.13.00.1.22
crewaicrewai >= 1.10.11.1.27
dspydspy >= 2.6.220.1.55
google-adkgoogle-adk >= 2.10.01.1.6
google-genaigoogle-genai >= 2.0.01.6.4
groqgroq >= 0.9.00.1.40
guardrailsguardrails-ai>=0.4.5,<0.5.10.1.33
haystackhaystack-ai >= 2.18.00.1.53
instructorinstructor >= 1.3.70.1.35
langchainlangchain_core >= 0.3.90.1.87
litellmOpenInference liteLLM Instrumentation0.1.58
llama-indexllama-index-core >= 0.14.19, llama-index-multi-modal-llms-openai >= 0.1.74.7.7
mcpmcp >= 1.24.02.1.5
mistralaimistralai >= 2.0.02.3.6
ollamaollama >= 0.4.00.1.20
openaiopenai >= 2.8.00.1.74
openai-agentsopenai-agents >= 0.11.02.8.4
openlitOpenInference OpenLIT Instrumentation0.1.25
openllmetryOpenInference OpenLLMetry Instrumentation0.1.31
pipecatpipecat-ai>=1.32.0.13
portkeyportkey_ai >= 0.1.00.1.30
pydantic-aipydantic-ai>=2.24.00.1.37
smolagentssmolagents>=1.24.00.1.50
strands-agentsstrands-agents >= 1.19.00.1.20
togethertogether >= 2.0.00.1.21
typesafetypesafe-sdk >= 0.6.00.1.13
vertexaigoogle-cloud-aiplatform >= 1.63.00.1.37