Title: Vercel AI: `streamObject` is not traced on AI SDK v4–v6 since v11 · Issue #25779 · getsentry/sentry-javascript · GitHub
Open Graph Title: Vercel AI: `streamObject` is not traced on AI SDK v4–v6 since v11 · Issue #25779 · getsentry/sentry-javascript
X Title: Vercel AI: `streamObject` is not traced on AI SDK v4–v6 since v11 · Issue #25779 · getsentry/sentry-javascript
Description: 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 ...
Open Graph Description: 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 v...
X Description: 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 ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/25779
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Vercel AI: `streamObject` is not traced on AI SDK v4–v6 since v11","articleBody":"### Description\n\nSince 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](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/vercelai/) still list it as traced on v6 and below.\n\n| `ai` | `generateText` | `streamText` | `generateObject` | `streamObject` |\n|---|---|---|---|---|\n| 6.0.316 | ✅ | ✅ | ✅ | ❌ |\n| 7.0.154 | ✅ | ✅ | ❌ | ❌ |\n\nRepro: 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`.\n\n**Why:** the orchestrion config injects `generateText`, `streamText` and `generateObject`, but not `streamObject` ([vercel-ai.ts](https://github.com/getsentry/sentry-javascript/blob/1177c46602a169a086f658eff360334c130e9534/packages/server-utils/src/orchestrion/config/vercel-ai.ts#L20-L24)). With no operation span, the model call isn't spanned either.\n\nThe 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](https://github.com/vercel/ai/issues/24125#issuecomment-6453488394)). Our [tests](https://github.com/getsentry/sentry-javascript/blob/1177c46602a169a086f658eff360334c130e9534/dev-packages/node-integration-tests/suites/tracing/vercelai/v6_v7/test.ts#L1195-L1199) already skip it.\n\n**Next steps**\n\n- [ ] Inject `streamObject` for v4–v6 like `streamText`: #25780. On v4 and v5 it isn't deprecated. After it ships, the docs are right again.\n- No v7 work. Users on v7 switch to `generateText`/`streamText` with `output`, which are traced on every version.\n\n","author":{"url":"https://github.com/sergical","@type":"Person","name":"sergical"},"datePublished":"2026-10-27T19:07:40Z","url":"https://github.com/getsentry/sentry-javascript/issues/25779"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e9eea12a-cc95-3a91-dc57-0f587370afbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2E2:23D7A:40C228:589113:6B046E61 |
| html-safe-nonce | 39acd0db4ada59c201c4e7221534f2fd212127293860a16cc818741e7c283104 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkUyOjIzRDdBOjQwQzIyODo1ODkxMTM6NkIwNDZFNjEiLCJ2aXNpdG9yX2lkIjoiMjcwMjYxOTgyNTA0OTcyNjU2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0c9b7ad393881c1e19958b077faf9555b176dd0fea86203573bd021d449a842 |
| hovercard-subject-tag | issue:6065909563 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/25779/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e6b8022e52715ecfaa5d08debae3f03cb7b07cb6a2c358d1c0ad9f7ab82652a2/getsentry/sentry-javascript/issues/25779 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e6b8022e52715ecfaa5d08debae3f03cb7b07cb6a2c358d1c0ad9f7ab82652a2/getsentry/sentry-javascript/issues/25779 |
| og:image:alt | 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 v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sergical |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width