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; and openinference-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.80
openinference-semantic-conventionsOpenInference Semantic Conventions0.1.46

Instrumentation

PackageInstrumentsVersion
ag2ag2>=0.14.0,<1.0.00.1.20
agent-frameworkagent-framework-core >= 1.0.0, agent-framework-openai >= 1.0.00.1.18
agentspecopentelemetry-sdk, pyagentspec >= 26.1.00.1.23
agnoagno>=2.7.21.2.2
anthropicanthropic >= 1.8.03.3.7
autogenautogen>=0.5.0,<1.0.00.1.16
autogen-agentchatautogen-agentchat >= 0.5.10.1.30
bedrockboto3 >= 1.40.460.1.68
beeaibeeai-framework >= 0.1.510.1.37
claude-agent-sdkclaude-agent-sdk>=0.1.450.1.30
coherecohere >= 5.13.00.1.23
crewaicrewai >= 1.10.11.1.28
dspydspy >= 2.6.220.1.56
google-adkgoogle-adk >= 2.10.01.1.7
google-genaigoogle-genai >= 2.0.01.6.5
groqgroq >= 0.9.00.1.41
guardrailsguardrails-ai>=0.4.5,<0.5.10.1.34
haystackhaystack-ai >= 2.18.00.1.54
instructorinstructor >= 1.3.70.1.36
langchainlangchain_core >= 0.3.90.1.88
litellmOpenInference liteLLM Instrumentation0.1.59
llama-indexllama-index-core >= 0.14.19, llama-index-multi-modal-llms-openai >= 0.1.74.7.8
mcpmcp >= 1.24.02.1.6
mistralaimistralai >= 2.0.02.3.7
ollamaollama >= 0.4.00.1.21
openaiopenai >= 2.8.00.1.75
openai-agentsopenai-agents >= 0.11.02.8.5
openlitOpenInference OpenLIT Instrumentation0.1.26
openllmetryOpenInference OpenLLMetry Instrumentation0.1.32
pipecatpipecat-ai>=1.32.0.14
portkeyportkey_ai >= 0.1.00.1.31
pydantic-aipydantic-ai>=2.24.00.1.38
smolagentssmolagents>=1.24.00.1.51
strands-agentsstrands-agents >= 1.19.00.1.21
togethertogether >= 2.0.00.1.22
typesafetypesafe-sdk >= 0.6.00.1.14
vertexaigoogle-cloud-aiplatform >= 1.63.00.1.38