ref(vercel-ai)!: Move Vercel AI integration to @sentry/server-utils - #22964
Draft
nicohrubec wants to merge 1 commit into
Draft
ref(vercel-ai)!: Move Vercel AI integration to @sentry/server-utils#22964nicohrubec wants to merge 1 commit into
@sentry/server-utils#22964nicohrubec wants to merge 1 commit into
Conversation
Contributor
size-limit report 📦
|
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 3, 2026 15:37
7c9b5e7 to
090d6a4
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.
Move the Vercel AI gen-ai instrumentation from
@sentry/coreto@sentry/server-utils/src/ai/vercel-ai, consuming the sharedai/corebase. 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 (already in server-utils) now imports the moved provider code from../ai/vercel-aiand../ai/core/utilsinstead of@sentry/core.With both vercel-ai and workers-ai now in server-utils, vercel-ai re-couples to
../workers-ai/constantsdirectly — the temporary string inline that lived in core's vercel-ai copy is gone with the deleted file.As with the other providers,
vercel-edgere-exports from@sentry/server-utils/no-diagnostic-channelsto keep the edge build free ofnode:diagnostics_channel.The shared
@sentry/server-utilstest client mock is reintroduced now that 7 server-utils test files need a full client (matching how@sentry/coreshares one across ~40 tests).🤖 Generated with Claude Code