Skip to content

docs(nextjs): Require experimental_telemetry for Vercel AI - #19197

Merged
chargome merged 2 commits into
masterfrom
chargome/docs/nextjs-vercel-ai-telemetry
Sep 1, 2026
Merged

docs(nextjs): Require experimental_telemetry for Vercel AI#19197
chargome merged 2 commits into
masterfrom
chargome/docs/nextjs-vercel-ai-telemetry

Conversation

@chargome

@chargome chargome commented Aug 31, 2026

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

On Next.js, experimental_telemetry: { isEnabled: true } is required on every AI SDK call in both the Node and Edge runtimes — the page scoped this to Edge and claimed the Node runtime patches call sites for you.

The troubleshooting entry for raw span names presented force: true as the whole fix, but alone it only registers the span processors and yields zero AI spans; it now spells out both required steps. Verified on @sentry/nextjs@10.71.0, Next.js 16.3.3, ai@6.

Also trimmed the Node/Edge split down to where the runtimes actually differ. Not version-gated, since the fix that makes force: true unnecessary (getsentry/sentry-javascript#23773) is unreleased. The page is shared across ~25 platforms — every edit is inside a javascript.nextjs <PlatformSection>.

On Next.js the SDK cannot auto-enable the Vercel AI SDK's telemetry, so
`experimental_telemetry` is required on every call in both the Node and Edge
runtimes. The page scoped that requirement to Edge and claimed the Node runtime
patches call sites automatically.

Also correct the troubleshooting entry for raw span names. It presented
`force: true` as the complete fix, but `force: true` alone only registers the
span processors — following it as written produced no AI spans at all.

Simplify the Next.js runtime split while here: it is kept for setup, where the
two runtimes need different config files, and dropped where both runtimes now
behave the same.

Refs getsentry/sentry-javascript#23773
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome chargome self-assigned this Aug 31, 2026
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Sep 1, 2026 9:42am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Sep 1, 2026 9:42am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Aug 31, 2026
@github-actions github-actions Bot removed the Priority: Normal Docs review has no urgent deadline label Sep 1, 2026
@chargome
chargome requested a review from JPeer264 September 1, 2026 05:06
@github-actions github-actions Bot added the Priority: Needs Triage The PR description is missing valid priority information label Sep 1, 2026
@chargome
chargome marked this pull request as ready for review September 1, 2026 05:15
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

@codeowner-assignment
codeowner-assignment Bot requested a review from a team September 1, 2026 05:15
Comment thread docs/platforms/javascript/common/agent-tracing/vercelai.mdx
Raw `ai.*` span names mean the AI SDK is already emitting telemetry, so
`experimental_telemetry` is not the missing step for that symptom — the span
processors are. Lead with `force: true` and keep `experimental_telemetry` as
something to preserve and extend, not to discover.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome merged commit 8b70317 into master Sep 1, 2026
21 checks passed
@chargome
chargome deleted the chargome/docs/nextjs-vercel-ai-telemetry branch September 1, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants