Skip to content

Commit 43c45d2

Browse files
committed
cdn the instrumentations
1 parent d050046 commit 43c45d2

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

dev-packages/browser-integration-tests/utils/generatePlugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record<string, string> = {
3737
moduleMetadataIntegration: 'modulemetadata',
3838
graphqlClientIntegration: 'graphqlclient',
3939
browserProfilingIntegration: 'browserprofiling',
40+
instrumentAnthropicAiClient: 'instrumentanthropicaiclient',
41+
instrumentOpenAiClient: 'instrumentopenaiclient',
42+
instrumentGoogleGenAIClient: 'instrumentgooglegenaiclient',
4043
// technically, this is not an integration, but let's add it anyway for simplicity
4144
makeMultiplexedTransport: 'multiplexedtransport',
4245
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { instrumentAnthropicAiClient } from '@sentry/core';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { instrumentGoogleGenAIClient } from '@sentry/core';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { instrumentOpenAiClient } from '@sentry/core';

packages/browser/src/utils/lazyLoadIntegration.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const LazyLoadableIntegrations = {
2121
rewriteFramesIntegration: 'rewriteframes',
2222
browserProfilingIntegration: 'browserprofiling',
2323
moduleMetadataIntegration: 'modulemetadata',
24+
instrumentAnthropicAiClient: 'instrumentanthropicaiclient',
25+
instrumentOpenAiClient: 'instrumentopenaiclient',
26+
instrumentGoogleGenAIClient: 'instrumentgooglegenaiclient',
2427
} as const;
2528

2629
const WindowWithMaybeIntegration = WINDOW as {

0 commit comments

Comments
 (0)