Skip to content

Commit 8506119

Browse files
authored
fix(node): Fix name of vercelAIIntegration to VercelAI (#15298)
We use capitalized integration names everywhere, except here. Noticed this by chance, this is kind of breaking, so probably also should go into the migration guide - @lforst should I add this, but this will conflict with the big PR, so maybe we just add it there directly?
1 parent 3e7ac9a commit 8506119

File tree

1 file changed

+4
-2
lines changed
  • packages/node/src/integrations/tracing/vercelai

1 file changed

+4
-2
lines changed

packages/node/src/integrations/tracing/vercelai/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import { generateInstrumentOnce } from '../../../otel/instrument';
55
import { addOriginToSpan } from '../../../utils/addOriginToSpan';
66
import { SentryVercelAiInstrumentation, sentryVercelAiPatched } from './instrumentation';
77

8-
export const instrumentVercelAi = generateInstrumentOnce('vercelAI', () => new SentryVercelAiInstrumentation({}));
8+
const INTEGRATION_NAME = 'VercelAI';
9+
10+
export const instrumentVercelAi = generateInstrumentOnce(INTEGRATION_NAME, () => new SentryVercelAiInstrumentation({}));
911

1012
const _vercelAIIntegration = (() => {
1113
return {
12-
name: 'vercelAI',
14+
name: INTEGRATION_NAME,
1315
setupOnce() {
1416
instrumentVercelAi();
1517
},

0 commit comments

Comments
 (0)