Skip to content

Commit 9bba3b8

Browse files
committed
Add DSN to examples
1 parent 28d7b3f commit 9bba3b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ The [LaunchDarkly](https://launchdarkly.com/) integration tracks feature flag ev
5151
import * as Sentry from '@sentry/browser';
5252
import * as LaunchDarkly from 'launchdarkly-js-client-sdk';
5353

54-
Sentry.init({integrations: [Sentry.launchDarklyIntegration()]});
54+
Sentry.init({
55+
dsn: "___PUBLIC_DSN___",
56+
integrations: [Sentry.launchDarklyIntegration()]
57+
});
5558

5659
const ldClient = LaunchDarkly.initialize(
5760
'my-client-ID',

docs/platforms/javascript/common/configuration/integrations/openfeature.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ The [OpenFeature](https://openfeature.dev/) integration tracks feature flag eval
3737
import * as Sentry from '@sentry/browser';
3838
import { OpenFeature } from '@openfeature/web-sdk';
3939

40-
Sentry.init({integrations: [Sentry.openFeatureIntegration()]});
40+
Sentry.init({
41+
dsn: "___PUBLIC_DSN___",
42+
integrations: [Sentry.openFeatureIntegration()]
43+
});
4144

4245
const client = OpenFeature.getClient();
4346
client.addHooks(new Sentry.OpenFeatureIntegrationHook());

0 commit comments

Comments
 (0)