JavaScript APIOverview

Core

Instrumentation

Integrations

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-openai

Core

PackageDescriptionVersion
@arizeai/openinference-coreOpenInference Core provides utilities shared by all OpenInference SDK packages.2.8.4
@arizeai/openinference-semantic-conventionsThis package provides OpenInference semantic conventions for tracing of LLM Applications.2.17.1

Instrumentation

PackageInstrumentsVersion
anthropic@anthropic-ai/sdk1.0.4
bedrock@aws-sdk/client-bedrock-runtime ^3.0.00.5.10
bedrock-agent-runtime@aws-sdk/client-bedrock-agent-runtime ^3.0.01.2.8
beeaibeeai-framework ^0.1.131.6.6
claude-agent-sdk@anthropic-ai/claude-agent-sdk >=0.2.00.3.9
langchain@langchain/core ^1.0.0 || ^0.3.0 || ^0.2.04.2.2
langchain-v0@langchain/core ^0.3.00.1.8
mcp@modelcontextprotocol/sdk >=1.0.00.2.40
openaiopenai ^7.0.0 || ^6.0.0 || ^5.0.04.5.1
openai-agents@openai/agents >=0.1.00.3.6
typesafe@typesafe-ai/sdk >=0.6.00.4.7

Integrations

PackageDescriptionVersion
@arizeai/openinference-genaiOpenInference utilities for converting OpenTelemetry GenAI span attributes to OpenInference span attributes0.4.4
@arizeai/openinference-tanstack-aiOpenInference middleware for TanStack AI0.3.6
@arizeai/openinference-vercelOpenInference utilities for ingesting Vercel AI SDK spans3.3.4