Skip to content

Commit 262c896

Browse files
committed
move stuff around and cleanup
1 parent 86330f5 commit 262c896

File tree

5 files changed

+16
-869
lines changed

5 files changed

+16
-869
lines changed

packages/cloudflare/src/integrations/tracing/vercelai/index.ts renamed to packages/cloudflare/src/integrations/tracing/vercelai.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@
88
* and users have to manually these to get spans.
99
*/
1010

11-
import type { Client, IntegrationFn} from '@sentry/core';
12-
import { defineIntegration,processVercelAiSpan } from '@sentry/core';
13-
import type { modulesIntegration } from '../../modules';
14-
import { INTEGRATION_NAME } from './constants';
15-
import type { VercelAiOptions } from './types';
11+
import type { Client, IntegrationFn } from '@sentry/core';
12+
import { defineIntegration, processVercelAiSpan } from '@sentry/core';
13+
import type { modulesIntegration } from '../modules';
14+
15+
interface VercelAiOptions {
16+
/**
17+
* By default, the instrumentation will register span processors only when the ai package is used.
18+
* If you want to register the span processors even when the ai package usage cannot be detected, you can set `force` to `true`.
19+
*/
20+
force?: boolean;
21+
}
22+
23+
const INTEGRATION_NAME = 'VercelAI';
1624

1725
/**
1826
* Determines if the integration should be forced based on environment and package availability.

0 commit comments

Comments
 (0)