Skip to content

Commit ac8faf7

Browse files
committed
Use Sentry namespace in init
1 parent 969c5c0 commit ac8faf7

File tree

2 files changed

+2
-39
lines changed
  • dev-packages/browser-integration-tests/suites/integrations/featureFlags/launchdarkly

2 files changed

+2
-39
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as Sentry from '@sentry/browser';
2-
import { launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler } from '@sentry/browser';
32

43
window.Sentry = Sentry;
5-
window.sentryLDIntegration = launchDarklyIntegration();
4+
window.sentryLDIntegration = Sentry.launchDarklyIntegration();
65

76
Sentry.init({
87
dsn: 'https://[email protected]/1337',
@@ -31,6 +30,6 @@ window.initializeLD = () => {
3130
return MockLaunchDarkly.initialize(
3231
'example-client-id',
3332
{ kind: 'user', key: 'example-context-key' },
34-
{ inspectors: [buildLaunchDarklyFlagUsedHandler()] },
33+
{ inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()] },
3534
);
3635
};

dev-packages/browser-integration-tests/suites/integrations/featureFlags/launchdarkly/withScope/init.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)