Instrumentation Packages
These packages provide automatic instrumentation for popular AI SDKs and frameworks:| Package | Description | npm |
|---|---|---|
| @arizeai/openinference-instrumentation-openai | Auto-instrumentation for OpenAI Node.js SDK | npm |
| @arizeai/openinference-instrumentation-anthropic | Auto-instrumentation for Anthropic SDK | npm |
| @arizeai/openinference-instrumentation-langchain | Auto-instrumentation for LangChain.js v1+ | npm |
| @arizeai/openinference-instrumentation-langchain-v0 | Auto-instrumentation for LangChain.js v0.X (deprecated) | npm |
| @arizeai/openinference-instrumentation-bedrock | Auto-instrumentation for AWS Bedrock Runtime | npm |
| @arizeai/openinference-instrumentation-bedrock-agent-runtime | Auto-instrumentation for AWS Bedrock Agent Runtime | npm |
| @arizeai/openinference-instrumentation-beeai | Auto-instrumentation for BeeAI framework | npm |
| @arizeai/openinference-instrumentation-claude-agent-sdk | Auto-instrumentation for Claude Agent SDK | npm |
| @arizeai/openinference-instrumentation-mcp | Auto-instrumentation for MCP TypeScript SDK | npm |
| @arizeai/openinference-vercel | Utilities for ingesting Vercel AI SDK spans | npm |
| @arizeai/openinference-mastra | Utilities for ingesting Mastra spans (deprecated) | npm |
Core Packages
These packages provide foundational functionality for building instrumentations and working with OpenInference:| Package | Description | npm |
|---|---|---|
| @arizeai/openinference-core | Shared tracing foundation with context propagation, span wrappers, and attribute helpers | npm |
| @arizeai/openinference-genai | Utilities to convert OpenTelemetry GenAI span attributes to OpenInference | npm |
| @arizeai/openinference-semantic-conventions | OpenInference semantic conventions for JavaScript | npm |
Installation
All packages are available via npm and can be installed using your preferred package manager:Common Features
All OpenInference JavaScript instrumentations provide:- Automatic Tracing: Capture traces without modifying application code
- OpenTelemetry Compatible: Works with standard OpenTelemetry infrastructure
- Context Propagation: Automatically propagate session ID, user ID, metadata, and tags
- Data Masking: Support for hiding sensitive inputs/outputs via trace configuration
- Custom Tracer Providers: Ability to use non-global tracer providers
- TypeScript Support: Full TypeScript type definitions included
Getting Started
Most instrumentations follow a similar pattern:- Install the instrumentation package
- Create a tracer provider
- Register the instrumentation
- Use your AI SDK normally