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: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.experimental_telemetry parameter to true.