Skip to main content
This package provides utilities to ingest Vercel AI SDK spans into platforms like Arize and Phoenix.
This package targets AI SDK v6 and is tested against v6 telemetry. Older versions (>= 3.3) are best-effort compatible.

AI SDK Compatibility

Installation

Install the instrumentation package:
You will also need to install OpenTelemetry and Vercel packages to your project:

Usage

@arizeai/openinference-vercel provides a set of utilities to help you ingest Vercel AI SDK spans into platforms and works in conjunction with Vercel’s OpenTelemetry support. To get started, you will need to add OpenTelemetry support to your Vercel project according to their guide. To process your Vercel AI SDK Spans add a OpenInferenceSimpleSpanProcessor or OpenInferenceBatchSpanProcessor to your OpenTelemetry configuration.
The OpenInferenceSpanProcessor does not handle the exporting of spans so you will pass it an exporter as a parameter.
Now enable telemetry in your AI SDK calls by setting the experimental_telemetry parameter to true.
For details on Vercel AI SDK telemetry see the Vercel AI SDK Telemetry documentation.

Examples

To see an example go to the Next.js OpenAI Telemetry Example in the examples directory of this repo.

Resources