Arize Phoenix TS
    Preparing search index...

    A span processor that lazily loads the OpenInference span processors from @arizeai/openinference-vercel.

    @arizeai/openinference-vercel v3 is published as ESM-only (no require export condition), so it cannot be loaded with require() from this package's CommonJS build on any Node.js version. A dynamic import(), 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.

    Implements

    • SpanProcessor
    Index
    • Called when a Span is started, if the span.isRecording() returns true.

      Parameters

      • span: Span

        the Span that just started.

      • parentContext: Context

      Returns void