Forces to export all finished spans
Called when a ReadableSpan is ended, if the span.isRecording()
returns true.
the Span that just ended.
Called when a Span is started, if the span.isRecording()
returns true.
the Span that just started.
Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.
A span processor that lazily loads the OpenInference span processors from
@arizeai/openinference-vercel.@arizeai/openinference-vercelv3 is published as ESM-only (norequireexport condition), so it cannot be loaded withrequire()from this package's CommonJS build on any Node.js version. A dynamicimport(), however, can load ESM from CommonJS on every supported Node.js version (>=18) — so the processors are loaded asynchronously and spans recorded before the load completes are buffered and replayed.If the module cannot be loaded at all (e.g. a bundler stripped dynamic imports), the processor falls back to the plain OpenTelemetry batch/simple span processors: spans still reach Phoenix, but Vercel AI SDK telemetry is not translated to OpenInference. A diagnostic warning is emitted in that case.