ref(vercel-ai)!: Move Vercel AI integration to @sentry/server-utils - #22964
Merged
nicohrubec merged 1 commit intoAug 4, 2026
Merged
Conversation
Contributor
size-limit report 📦
|
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 3, 2026 15:37
7c9b5e7 to
090d6a4
Compare
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
3 times, most recently
from
August 4, 2026 07:35
04ae051 to
a64bbcc
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a64bbcc. Configure here.
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 07:45
a64bbcc to
21ca822
Compare
nicohrubec
marked this pull request as ready for review
August 4, 2026 07:46
nicohrubec
requested review from
JPeer264,
andreiborza and
mydea
and removed request for
a team and
mydea
August 4, 2026 07:46
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 07:55
21ca822 to
e6c988a
Compare
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 09:29
e6c988a to
0159dd8
Compare
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 09:48
0159dd8 to
30e225c
Compare
chargome
approved these changes
Aug 4, 2026
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 12:06
30e225c to
76ba40c
Compare
Move the Vercel AI gen-ai instrumentation from `@sentry/core` to `@sentry/server-utils/src/ai/vercel-ai`, consuming the shared `ai/core` base. This is the last provider move. The public helpers (`addVercelAiProcessors`, `getProviderMetadataAttributes`) and the `_INTERNAL_*` tool-call-context symbols are re-exported from `@sentry/server-utils`; cloudflare/deno/vercel-edge consume them from there, so the platform SDK public API is unchanged. The existing `src/vercel-ai/` diagnostics-channel subscriber layer now imports the moved provider code from `../ai/vercel-ai` and `../ai/core/utils` instead of `@sentry/core`. With both vercel-ai and workers-ai now in server-utils, vercel-ai re-couples to `../workers-ai/constants` directly (the temporary inline in core's copy is gone with the deleted file). As with the other providers, `vercel-edge` re-exports from `@sentry/server-utils/no-diagnostic-channels` to keep the edge build free of `node:diagnostics_channel`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
nicohrubec
force-pushed
the
ref/move-ai-vercel-ai-2
branch
from
August 4, 2026 12:11
76ba40c to
53aee53
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This moves the Vercel AI integration core logic from
@sentry/coreto@sentry/server-utils, dropping all exports exceptaddVercelAiProcessors. The existingsrc/vercel-ai/diagnostics-channel subscriber layer now imports the moved provider code from../ai/vercel-aiand../ai/core/utilsinstead of@sentry/core.vercel-edgere-exportsaddVercelAiProcessorsfrom@sentry/server-utils/no-diagnostic-channelsto keep the edge build free ofnode:diagnostics_channel.With both Vercel AI and Workers AI now in server-utils, the last inlined
WORKERS_AI_INTEGRATION_NAMEcopy (in the diagnostics-channel subscriber) is replaced by an import from../ai/workers-ai/constants, so the constant is defined in exactly one place. Reintroduces the shared@sentry/server-utilstest client mock now that several server-utils tests need a full client.