JavaScript API
Reference for the 16 OpenInference packages on npm, generated from their source.
Packages
Each instrumentation package traces one library: install it, register its instrumentation with OpenTelemetry at startup, and the library's calls make spans that follow the specification. Integrations turn the spans another SDK makes (the Vercel AI SDK, OpenTelemetry's GenAI conventions, TanStack AI) into OpenInference spans. All of them build on two core packages: @arizeai/openinference-core, for tracing your own code (withSpan, traceChain), adding context such as session and user IDs, and configuring what spans record (TraceConfig); and @arizeai/openinference-semantic-conventions, the attribute names as constants.
# The instrumentation for your library, e.g. OpenAI.
npm install @arizeai/openinference-instrumentation-openaiSearch
Core
| Package | Description | Version |
|---|---|---|
@arizeai/openinference-core | OpenInference Core provides utilities shared by all OpenInference SDK packages. | 2.8.4 |
@arizeai/openinference-semantic-conventions | This package provides OpenInference semantic conventions for tracing of LLM Applications. | 2.17.1 |
Instrumentation
| Package | Instruments | Version |
|---|---|---|
anthropic | @anthropic-ai/sdk | 1.0.4 |
bedrock | @aws-sdk/client-bedrock-runtime ^3.0.0 | 0.5.10 |
bedrock-agent-runtime | @aws-sdk/client-bedrock-agent-runtime ^3.0.0 | 1.2.8 |
beeai | beeai-framework ^0.1.13 | 1.6.6 |
claude-agent-sdk | @anthropic-ai/claude-agent-sdk >=0.2.0 | 0.3.9 |
langchain | @langchain/core ^1.0.0 || ^0.3.0 || ^0.2.0 | 4.2.2 |
langchain-v0 | @langchain/core ^0.3.0 | 0.1.8 |
mcp | @modelcontextprotocol/sdk >=1.0.0 | 0.2.40 |
openai | openai ^7.0.0 || ^6.0.0 || ^5.0.0 | 4.5.1 |
openai-agents | @openai/agents >=0.1.0 | 0.3.6 |
typesafe | @typesafe-ai/sdk >=0.6.0 | 0.4.7 |
Integrations
| Package | Description | Version |
|---|---|---|
@arizeai/openinference-genai | OpenInference utilities for converting OpenTelemetry GenAI span attributes to OpenInference span attributes | 0.4.4 |
@arizeai/openinference-tanstack-ai | OpenInference middleware for TanStack AI | 0.3.6 |
@arizeai/openinference-vercel | OpenInference utilities for ingesting Vercel AI SDK spans | 3.3.4 |