Skip to content

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

Closed

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
  2. mvanhorn commented on Nov 15, 2026

    @mvanhorn
    Contributor

    Implemented in #26382.

  3. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Nov 15, 2026
  4. self-assigned this
    on Nov 16, 2026
  5. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Nov 16, 2026
  6. added a commit that references this issue on Nov 16, 2026
    dc8cc77
  7. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #26382, which was included in the 11.13.0 release.

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

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions