Commit a64bbcc
ref(vercel-ai)!: Move Vercel AI integration to
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>@sentry/server-utils
1 parent 71328de commit a64bbcc
23 files changed
Lines changed: 151 additions & 73 deletions
File tree
- dev-packages/node-integration-tests/suites/tracing/vercelai
- span-streaming-v4
- span-streaming-v6
- v5
- v6_v7
- packages
- cloudflare/src/integrations/tracing
- core/src
- deno/src/integrations/tracing
- server-utils
- src
- ai
- vercel-ai
- vercel-ai
- test
- ai/lib
- tracing
- utils
- mocks
- vercel-edge/src/integrations/tracing
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | | - | |
62 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
File renamed without changes.
0 commit comments