Skip to content

Vercel AI: streamObject is not traced on AI SDK v4–v6 since v11 #25779

Open

Description

@sergical

Description

Since v11 made channel-based instrumentation the default (#22501), streamObject creates no gen_ai spans on ai v4–v6. v10's OTel path traced it, and the docs still list it as traced on v6 and below.

ai generateText streamText generateObject streamObject
6.0.316 ✅ ✅ ✅ ❌
7.0.154 ✅ ✅ ❌ ❌

Repro: Next.js 16.4.3 with @sentry/nextjs 11.9.0 and real model calls. Plain @sentry/node behaves the same; the integration test in the fix PR fails on develop.

Why: the orchestrion config injects generateText, streamText and generateObject, but not streamObject (vercel-ai.ts). With no operation span, the model call isn't spanned either.

The v7 row isn't a regression and won't change. generateObject and streamObject are deprecated since ai v6, and v7 doesn't publish them on ai:telemetry. Vercel won't add it (vercel/ai#24125). Our tests already skip it.

Next steps

Activity

  1. linear-code commented on Oct 27, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions