From 879bbf4a2afd4502a52d60a4032a990495839c69 Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:50:21 -0800 Subject: [PATCH 01/10] ref(flags): add platform-specific content to JS integration docs --- .../integrations/featureflags.mdx | 42 ++++------------- .../integrations/launchdarkly.mdx | 42 ++--------------- .../integrations/openfeature.mdx | 46 ++----------------- .../configuration/featureflags/javascript.mdx | 17 +++++++ .../configuration/launchdarkly/javascript.mdx | 24 ++++++++++ .../configuration/openfeature/javascript.mdx | 37 +++++++++++++++ 6 files changed, 94 insertions(+), 114 deletions(-) create mode 100644 platform-includes/configuration/featureflags/javascript.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.mdx diff --git a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx index 22caf626438e8..3b17f4234eeea 100644 --- a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx @@ -25,46 +25,24 @@ notSupported: -This integration only works inside a browser environment. If you are using a specific -feature flag provider, refer to the supported list [here](/platforms/javascript/feature-flags/#enable-evaluation-tracking) before setting up this integration. +This integration only works inside a browser environment, and you must install +from npm. -The Feature Flags integration allows you to manually track feature flag evaluations through an API. These evaluations are held in memory and sent to Sentry when an error occurs. -**At the moment, we only support boolean flag evaluations.** - -_Import names: `Sentry.featureFlagsIntegration` and `type Sentry.FeatureFlagsIntegration`_ - -## Install - -Install your platform's Sentry SDK from npm. + -## Configure +If you are using an external feature flag provider, refer to the supported list [here](/platforms/javascript/feature-flags/#enable-evaluation-tracking) before setting up this integration. -```JavaScript -import * as Sentry from '@sentry/browser'; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - integrations: [Sentry.featureFlagsIntegration()] -}); -``` - -## Verify + -The integration is tested by calling the `addFeatureFlag` method before capturing an exception. +The Feature Flags integration allows you to manually track feature flag evaluations through an API. +These evaluations are held in memory and sent to Sentry when an error occurs. +**At the moment, we only support boolean flag evaluations.** -```JavaScript -import * as Sentry from '@sentry/browser'; +_Import names: `Sentry.featureFlagsIntegration` and `type Sentry.FeatureFlagsIntegration`_ -const flagsIntegration = Sentry.getClient()?.getIntegrationByName('FeatureFlags'); -if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); -} else { - // check your configure step -} -Sentry.captureException(new Error('broke')); -``` + Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". diff --git a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx index 12dddb26e6e16..50300f11e5ea7 100644 --- a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx @@ -25,7 +25,8 @@ notSupported: -This integration only works inside a browser environment. +This integration only works inside a browser environment, and you must install +from npm. @@ -33,44 +34,7 @@ The [LaunchDarkly](https://launchdarkly.com/) integration tracks feature flag ev _Import names: `Sentry.launchDarklyIntegration` and `Sentry.buildLaunchDarklyFlagUsedHandler`_ -## Install - -Install your platform's Sentry SDK and [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) from npm. - -## Configure - -```JavaScript -import * as Sentry from '@sentry/browser'; -import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - integrations: [Sentry.launchDarklyIntegration()] -}); - -const ldClient = LaunchDarkly.initialize( - 'my-client-ID', - {kind: 'user', key: 'my-user-context-key'}, - {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} -); -``` - -Learn more about the [LaunchDarkly SDK](https://docs.launchdarkly.com/sdk/client-side/javascript). At the moment, **we aren't officially supporting framework-specific LaunchDarkly SDKs.** However, you may reuse the setup code for [React](https://www.npmjs.com/package/launchdarkly-react-client-sdk) and [client-side Node.js](https://www.npmjs.com/package/launchdarkly-node-client-sdk). - -## Verify - -The integration is tested by evaluating a feature flag with your LaunchDarkly SDK before capturing an exception. - -```JavaScript -import * as Sentry from '@sentry/browser'; -import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; - -// Evaluate a flag with a default value, with the ldClient from the Configure step. -// You may have to wait for your client to initialize before doing this. -ldClient?.variation("hello", false); - -Sentry.captureException(new Error("Something went wrong!")) -``` + Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". diff --git a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx index 2396c818cfa9e..b6db8b937a7e5 100644 --- a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx @@ -25,7 +25,8 @@ notSupported: -This integration only works inside a browser environment. +This integration only works inside a browser environment, and you must install +from npm. @@ -33,48 +34,7 @@ The [OpenFeature](https://openfeature.dev/) integration tracks feature flag eval _Import name: `Sentry.openFeatureIntegration` and `Sentry.OpenFeatureIntegrationHook`_ -## Install - -Install your platform's Sentry SDK and [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) from npm. - -## Configure - -```JavaScript -import * as Sentry from '@sentry/browser'; -import { OpenFeature } from '@openfeature/web-sdk'; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - integrations: [Sentry.openFeatureIntegration()] -}); - -OpenFeature.setProvider(new MyProviderOfChoice()); - -// Option 1: track all OpenFeature evaluations. -OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); - -// Option 2: only track evaluations by a specific client. -const client = OpenFeature.getClient(); -client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -``` - -Learn more about OpenFeature [providers](https://openfeature.dev/docs/reference/concepts/provider) and the [web SDK](https://openfeature.dev/docs/reference/technologies/client/web/). - -## Verify - -The integration is tested by evaluating a feature flag with your OpenFeature SDK before capturing an exception. - -```JavaScript -import * as Sentry from '@sentry/browser'; -import { OpenFeature } from '@openfeature/web-sdk'; - -// Evaluate a flag with a default value. If you added the hook to a client in -// the Configure step, make sure to use the same client here. -const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); - -Sentry.captureException(new Error("Something went wrong!")) -``` + Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". diff --git a/platform-includes/configuration/featureflags/javascript.mdx b/platform-includes/configuration/featureflags/javascript.mdx new file mode 100644 index 0000000000000..7e3f14837d9f9 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/browser'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.mdx b/platform-includes/configuration/launchdarkly/javascript.mdx new file mode 100644 index 0000000000000..38a662b25d8ab --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/browser'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/openfeature/javascript.mdx b/platform-includes/configuration/openfeature/javascript.mdx new file mode 100644 index 0000000000000..c90aae4b9811c --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/browser'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/browser'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` From 4771be6f70e19e425d7c5278b6d087a15e34578b Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:08:29 -0800 Subject: [PATCH 02/10] featureflags platforms --- .../featureflags/javascript.angular.mdx | 17 +++++++++++++++++ .../featureflags/javascript.astro.mdx | 17 +++++++++++++++++ .../featureflags/javascript.ember.mdx | 17 +++++++++++++++++ .../featureflags/javascript.gatsby.mdx | 17 +++++++++++++++++ .../featureflags/javascript.nextjs.mdx | 17 +++++++++++++++++ .../featureflags/javascript.nuxt.mdx | 17 +++++++++++++++++ .../featureflags/javascript.react.mdx | 17 +++++++++++++++++ .../featureflags/javascript.remix.mdx | 17 +++++++++++++++++ .../featureflags/javascript.solid.mdx | 17 +++++++++++++++++ .../featureflags/javascript.solidstart.mdx | 17 +++++++++++++++++ .../featureflags/javascript.svelte.mdx | 17 +++++++++++++++++ .../featureflags/javascript.sveltekit.mdx | 17 +++++++++++++++++ .../featureflags/javascript.vue.mdx | 17 +++++++++++++++++ 13 files changed, 221 insertions(+) create mode 100644 platform-includes/configuration/featureflags/javascript.angular.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.astro.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.ember.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.gatsby.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.nextjs.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.nuxt.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.react.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.remix.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.solid.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.solidstart.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.svelte.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.sveltekit.mdx create mode 100644 platform-includes/configuration/featureflags/javascript.vue.mdx diff --git a/platform-includes/configuration/featureflags/javascript.angular.mdx b/platform-includes/configuration/featureflags/javascript.angular.mdx new file mode 100644 index 0000000000000..bce49bc8cd8bb --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.angular.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/angular'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.astro.mdx b/platform-includes/configuration/featureflags/javascript.astro.mdx new file mode 100644 index 0000000000000..3aef3975b4311 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.astro.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/astro'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.ember.mdx b/platform-includes/configuration/featureflags/javascript.ember.mdx new file mode 100644 index 0000000000000..2201135849d39 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.ember.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/ember'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.gatsby.mdx b/platform-includes/configuration/featureflags/javascript.gatsby.mdx new file mode 100644 index 0000000000000..2ed000c278194 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.gatsby.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/gatsby'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.nextjs.mdx b/platform-includes/configuration/featureflags/javascript.nextjs.mdx new file mode 100644 index 0000000000000..bac47dfc30dfc --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.nextjs.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/nextjs'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.nuxt.mdx b/platform-includes/configuration/featureflags/javascript.nuxt.mdx new file mode 100644 index 0000000000000..e82f0f3e7a557 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.nuxt.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/nuxt'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.react.mdx b/platform-includes/configuration/featureflags/javascript.react.mdx new file mode 100644 index 0000000000000..cd507808e4db9 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.react.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/react'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.remix.mdx b/platform-includes/configuration/featureflags/javascript.remix.mdx new file mode 100644 index 0000000000000..147030915167b --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.remix.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/remix'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.solid.mdx b/platform-includes/configuration/featureflags/javascript.solid.mdx new file mode 100644 index 0000000000000..31b1e7ccdb2a8 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.solid.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/solid'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.solidstart.mdx b/platform-includes/configuration/featureflags/javascript.solidstart.mdx new file mode 100644 index 0000000000000..d477a813f8725 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.solidstart.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/solidstart'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.svelte.mdx b/platform-includes/configuration/featureflags/javascript.svelte.mdx new file mode 100644 index 0000000000000..1d2f849614ae4 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.svelte.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/svelte'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx new file mode 100644 index 0000000000000..7ecb7af070da0 --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/sveltekit'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` diff --git a/platform-includes/configuration/featureflags/javascript.vue.mdx b/platform-includes/configuration/featureflags/javascript.vue.mdx new file mode 100644 index 0000000000000..ddefb130e365a --- /dev/null +++ b/platform-includes/configuration/featureflags/javascript.vue.mdx @@ -0,0 +1,17 @@ +```JavaScript +import * as Sentry from '@sentry/vue'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.featureFlagsIntegration()] +}); + +const flagsIntegration = Sentry.getClient()? + .getIntegrationByName('FeatureFlags'); +if (flagsIntegration) { + flagsIntegration.addFeatureFlag('hello', false); +} else { + // set up failed +} +Sentry.captureException(new Error('broke')); +``` From 2717ee3bad56a1d7552c6ba94ab5494d47bc9adc Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:31:28 -0800 Subject: [PATCH 03/10] ld and of platforms --- .../launchdarkly/javascript.angular.mdx | 24 ++++++++++++ .../launchdarkly/javascript.astro.mdx | 24 ++++++++++++ .../launchdarkly/javascript.ember.mdx | 24 ++++++++++++ .../launchdarkly/javascript.gatsby.mdx | 24 ++++++++++++ .../launchdarkly/javascript.nextjs.mdx | 24 ++++++++++++ .../launchdarkly/javascript.nuxt.mdx | 24 ++++++++++++ .../launchdarkly/javascript.react.mdx | 24 ++++++++++++ .../launchdarkly/javascript.remix.mdx | 24 ++++++++++++ .../launchdarkly/javascript.solid.mdx | 24 ++++++++++++ .../launchdarkly/javascript.solidstart.mdx | 24 ++++++++++++ .../launchdarkly/javascript.svelte.mdx | 24 ++++++++++++ .../launchdarkly/javascript.sveltekit.mdx | 24 ++++++++++++ .../launchdarkly/javascript.vue.mdx | 24 ++++++++++++ .../openfeature/javascript.angular.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.astro.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.ember.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.gatsby.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.nextjs.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.nuxt.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.react.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.remix.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.solid.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.solidstart.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.svelte.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.sveltekit.mdx | 37 +++++++++++++++++++ .../openfeature/javascript.vue.mdx | 37 +++++++++++++++++++ 26 files changed, 793 insertions(+) create mode 100644 platform-includes/configuration/launchdarkly/javascript.angular.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.astro.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.ember.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.gatsby.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.nextjs.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.nuxt.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.react.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.remix.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.solid.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.solidstart.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.svelte.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx create mode 100644 platform-includes/configuration/launchdarkly/javascript.vue.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.angular.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.astro.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.ember.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.gatsby.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.nextjs.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.nuxt.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.react.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.remix.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.solid.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.solidstart.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.svelte.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.sveltekit.mdx create mode 100644 platform-includes/configuration/openfeature/javascript.vue.mdx diff --git a/platform-includes/configuration/launchdarkly/javascript.angular.mdx b/platform-includes/configuration/launchdarkly/javascript.angular.mdx new file mode 100644 index 0000000000000..d1ddab46b353e --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.angular.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/angular'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.astro.mdx b/platform-includes/configuration/launchdarkly/javascript.astro.mdx new file mode 100644 index 0000000000000..c1adb63a7c684 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.astro.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/astro'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.ember.mdx b/platform-includes/configuration/launchdarkly/javascript.ember.mdx new file mode 100644 index 0000000000000..767b342a53ce5 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.ember.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/ember'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx new file mode 100644 index 0000000000000..165572ed5d90f --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/gatsby'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx new file mode 100644 index 0000000000000..1c88aa4db5157 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/nextjs'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx new file mode 100644 index 0000000000000..18b325593d8be --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/nuxt'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx new file mode 100644 index 0000000000000..6bf4030241d1c --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/react'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx new file mode 100644 index 0000000000000..6d129baca1221 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/remix'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solid.mdx b/platform-includes/configuration/launchdarkly/javascript.solid.mdx new file mode 100644 index 0000000000000..8235215d6bb1a --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.solid.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/solid'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx new file mode 100644 index 0000000000000..cfab38115eec2 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/solidstart'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx new file mode 100644 index 0000000000000..d92630cddf651 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/svelte'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx new file mode 100644 index 0000000000000..a224091011cf9 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/sveltekit'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/launchdarkly/javascript.vue.mdx b/platform-includes/configuration/launchdarkly/javascript.vue.mdx new file mode 100644 index 0000000000000..736fbe807e3a4 --- /dev/null +++ b/platform-includes/configuration/launchdarkly/javascript.vue.mdx @@ -0,0 +1,24 @@ +Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). + +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) + +```JavaScript +import * as Sentry from '@sentry/vue'; +import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.launchDarklyIntegration()] +}); + +const ldClient = LaunchDarkly.initialize( + 'my-client-ID', + {kind: 'user', key: 'my-user-context-key'}, + {inspectors: [Sentry.buildLaunchDarklyFlagUsedHandler()]} +); + +// Evaluate a flag with a default value. You may have to wait for your client to initialize first. +ldClient?.variation("hello", false); + +Sentry.captureException(new Error("Something went wrong!")) +``` diff --git a/platform-includes/configuration/openfeature/javascript.angular.mdx b/platform-includes/configuration/openfeature/javascript.angular.mdx new file mode 100644 index 0000000000000..27c29678627c1 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.angular.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/angular'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/angular'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.astro.mdx b/platform-includes/configuration/openfeature/javascript.astro.mdx new file mode 100644 index 0000000000000..ddee557ac1cba --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.astro.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/astro'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/astro'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.ember.mdx b/platform-includes/configuration/openfeature/javascript.ember.mdx new file mode 100644 index 0000000000000..55d4638a012f2 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.ember.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/ember'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/ember'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.gatsby.mdx b/platform-includes/configuration/openfeature/javascript.gatsby.mdx new file mode 100644 index 0000000000000..51abd7ad19334 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.gatsby.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/gatsby'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/gatsby'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.nextjs.mdx b/platform-includes/configuration/openfeature/javascript.nextjs.mdx new file mode 100644 index 0000000000000..9df71925a32f7 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.nextjs.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/nextjs'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/nextjs'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.nuxt.mdx b/platform-includes/configuration/openfeature/javascript.nuxt.mdx new file mode 100644 index 0000000000000..3b8467ade4601 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.nuxt.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/nuxt'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/nuxt'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.react.mdx b/platform-includes/configuration/openfeature/javascript.react.mdx new file mode 100644 index 0000000000000..90ae7576fc060 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.react.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/react'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/react'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.remix.mdx b/platform-includes/configuration/openfeature/javascript.remix.mdx new file mode 100644 index 0000000000000..b808507f10b03 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.remix.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/remix'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/remix'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.solid.mdx b/platform-includes/configuration/openfeature/javascript.solid.mdx new file mode 100644 index 0000000000000..df8e52c21c253 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.solid.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/solid'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/solid'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.solidstart.mdx b/platform-includes/configuration/openfeature/javascript.solidstart.mdx new file mode 100644 index 0000000000000..78b5d8e1fff1e --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.solidstart.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/solidstart'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/solidstart'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.svelte.mdx b/platform-includes/configuration/openfeature/javascript.svelte.mdx new file mode 100644 index 0000000000000..e18b203fb9fef --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.svelte.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/svelte'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/svelte'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx new file mode 100644 index 0000000000000..2f133f9838df4 --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/sveltekit'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/sveltekit'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` diff --git a/platform-includes/configuration/openfeature/javascript.vue.mdx b/platform-includes/configuration/openfeature/javascript.vue.mdx new file mode 100644 index 0000000000000..f81a168e0fe1f --- /dev/null +++ b/platform-includes/configuration/openfeature/javascript.vue.mdx @@ -0,0 +1,37 @@ +Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. + +npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) + +```JavaScript {tabTitle: JavaScript (Track All Evals)} +import * as Sentry from '@sentry/vue'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const client = OpenFeature.getClient(); +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` + +```JavaScript {tabTitle: JavaScript (Track One Client)} +import * as Sentry from '@sentry/vue'; +import { OpenFeature } from '@openfeature/web-sdk'; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [Sentry.openFeatureIntegration()] +}); + +OpenFeature.setProvider(new MyProviderOfChoice()); +const client = OpenFeature.getClient(); +client.addHooks(new Sentry.OpenFeatureIntegrationHook()); + +const result = client.getBooleanValue('hello', false); // evaluate with a default value +Sentry.captureException(new Error("Something went wrong!")); +``` From f50ad1ed6402168a7ad29fefb392da21d15e924c Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:47:41 -0800 Subject: [PATCH 04/10] Rm 'Install with npm or yarn' --- .../configuration/launchdarkly/javascript.gatsby.mdx | 2 +- .../configuration/launchdarkly/javascript.nextjs.mdx | 2 +- .../configuration/launchdarkly/javascript.react.mdx | 2 +- .../configuration/launchdarkly/javascript.remix.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx index 165572ed5d90f..a05b7fce7d6b3 100644 --- a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -1,6 +1,6 @@ Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). -Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) ```JavaScript import * as Sentry from '@sentry/gatsby'; diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx index 1c88aa4db5157..790a8fb36b065 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -1,6 +1,6 @@ Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). -Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) ```JavaScript import * as Sentry from '@sentry/nextjs'; diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx index 6bf4030241d1c..793f9a1a76804 100644 --- a/platform-includes/configuration/launchdarkly/javascript.react.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -1,6 +1,6 @@ Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). -Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) ```JavaScript import * as Sentry from '@sentry/react'; diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx index 6d129baca1221..9b26dc95b57b4 100644 --- a/platform-includes/configuration/launchdarkly/javascript.remix.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -1,6 +1,6 @@ Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). -Install with npm or yarn: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) ```JavaScript import * as Sentry from '@sentry/remix'; From 8e6ea2d0f16378f5fc15912c7ec1caeb5163bbae Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:51:24 -0800 Subject: [PATCH 05/10] Label featureflags code as TypeScript --- .../configuration/featureflags/javascript.angular.mdx | 2 +- .../configuration/featureflags/javascript.astro.mdx | 2 +- .../configuration/featureflags/javascript.ember.mdx | 2 +- .../configuration/featureflags/javascript.gatsby.mdx | 2 +- platform-includes/configuration/featureflags/javascript.mdx | 2 +- .../configuration/featureflags/javascript.nextjs.mdx | 2 +- .../configuration/featureflags/javascript.nuxt.mdx | 2 +- .../configuration/featureflags/javascript.react.mdx | 2 +- .../configuration/featureflags/javascript.remix.mdx | 2 +- .../configuration/featureflags/javascript.solid.mdx | 2 +- .../configuration/featureflags/javascript.solidstart.mdx | 2 +- .../configuration/featureflags/javascript.svelte.mdx | 2 +- .../configuration/featureflags/javascript.sveltekit.mdx | 2 +- platform-includes/configuration/featureflags/javascript.vue.mdx | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/platform-includes/configuration/featureflags/javascript.angular.mdx b/platform-includes/configuration/featureflags/javascript.angular.mdx index bce49bc8cd8bb..39e48a6537f27 100644 --- a/platform-includes/configuration/featureflags/javascript.angular.mdx +++ b/platform-includes/configuration/featureflags/javascript.angular.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/angular'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.astro.mdx b/platform-includes/configuration/featureflags/javascript.astro.mdx index 3aef3975b4311..7c9fe2767d3c1 100644 --- a/platform-includes/configuration/featureflags/javascript.astro.mdx +++ b/platform-includes/configuration/featureflags/javascript.astro.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/astro'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.ember.mdx b/platform-includes/configuration/featureflags/javascript.ember.mdx index 2201135849d39..2dd6c38444c93 100644 --- a/platform-includes/configuration/featureflags/javascript.ember.mdx +++ b/platform-includes/configuration/featureflags/javascript.ember.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/ember'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.gatsby.mdx b/platform-includes/configuration/featureflags/javascript.gatsby.mdx index 2ed000c278194..4b01f0382594c 100644 --- a/platform-includes/configuration/featureflags/javascript.gatsby.mdx +++ b/platform-includes/configuration/featureflags/javascript.gatsby.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/gatsby'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.mdx b/platform-includes/configuration/featureflags/javascript.mdx index 7e3f14837d9f9..d57f3f8016ccd 100644 --- a/platform-includes/configuration/featureflags/javascript.mdx +++ b/platform-includes/configuration/featureflags/javascript.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/browser'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.nextjs.mdx b/platform-includes/configuration/featureflags/javascript.nextjs.mdx index bac47dfc30dfc..a7b4ea4b21445 100644 --- a/platform-includes/configuration/featureflags/javascript.nextjs.mdx +++ b/platform-includes/configuration/featureflags/javascript.nextjs.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/nextjs'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.nuxt.mdx b/platform-includes/configuration/featureflags/javascript.nuxt.mdx index e82f0f3e7a557..27664ca393699 100644 --- a/platform-includes/configuration/featureflags/javascript.nuxt.mdx +++ b/platform-includes/configuration/featureflags/javascript.nuxt.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/nuxt'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.react.mdx b/platform-includes/configuration/featureflags/javascript.react.mdx index cd507808e4db9..b5e1244cf48e7 100644 --- a/platform-includes/configuration/featureflags/javascript.react.mdx +++ b/platform-includes/configuration/featureflags/javascript.react.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/react'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.remix.mdx b/platform-includes/configuration/featureflags/javascript.remix.mdx index 147030915167b..f600d92d6b40d 100644 --- a/platform-includes/configuration/featureflags/javascript.remix.mdx +++ b/platform-includes/configuration/featureflags/javascript.remix.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/remix'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.solid.mdx b/platform-includes/configuration/featureflags/javascript.solid.mdx index 31b1e7ccdb2a8..9a579074adb20 100644 --- a/platform-includes/configuration/featureflags/javascript.solid.mdx +++ b/platform-includes/configuration/featureflags/javascript.solid.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/solid'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.solidstart.mdx b/platform-includes/configuration/featureflags/javascript.solidstart.mdx index d477a813f8725..42431fb1966bc 100644 --- a/platform-includes/configuration/featureflags/javascript.solidstart.mdx +++ b/platform-includes/configuration/featureflags/javascript.solidstart.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/solidstart'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.svelte.mdx b/platform-includes/configuration/featureflags/javascript.svelte.mdx index 1d2f849614ae4..0ec1558b333cf 100644 --- a/platform-includes/configuration/featureflags/javascript.svelte.mdx +++ b/platform-includes/configuration/featureflags/javascript.svelte.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/svelte'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx index 7ecb7af070da0..92fca2ea517c2 100644 --- a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx +++ b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/sveltekit'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.vue.mdx b/platform-includes/configuration/featureflags/javascript.vue.mdx index ddefb130e365a..fa9937813a6dc 100644 --- a/platform-includes/configuration/featureflags/javascript.vue.mdx +++ b/platform-includes/configuration/featureflags/javascript.vue.mdx @@ -1,4 +1,4 @@ -```JavaScript +```TypeScript import * as Sentry from '@sentry/vue'; Sentry.init({ From f1c27ef542722dc0161122402e04d8c589538d0e Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:29:35 -0800 Subject: [PATCH 06/10] Update info alert and ffs link --- .../common/configuration/integrations/featureflags.mdx | 5 ++--- .../common/configuration/integrations/launchdarkly.mdx | 3 +-- .../common/configuration/integrations/openfeature.mdx | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx index 3b17f4234eeea..7c621c3848792 100644 --- a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx @@ -25,14 +25,13 @@ notSupported: -This integration only works inside a browser environment, and you must install -from npm. +This integration only works inside a browser environment. It is only available from a package-based install (e.g. `npm` or `yarn`). -If you are using an external feature flag provider, refer to the supported list [here](/platforms/javascript/feature-flags/#enable-evaluation-tracking) before setting up this integration. +If you are using an external feature flag provider, refer to the [supported list](/platforms/javascript/feature-flags/#enable-evaluation-tracking) before setting up this integration. diff --git a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx index 50300f11e5ea7..afd019772f787 100644 --- a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx @@ -25,8 +25,7 @@ notSupported: -This integration only works inside a browser environment, and you must install -from npm. +This integration only works inside a browser environment. It is only available from a package-based install (e.g. `npm` or `yarn`). diff --git a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx index b6db8b937a7e5..56c6b1f924377 100644 --- a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx @@ -25,8 +25,7 @@ notSupported: -This integration only works inside a browser environment, and you must install -from npm. +This integration only works inside a browser environment. It is only available from a package-based install (e.g. `npm` or `yarn`). From 611d3897764d8f612950d164d34b4a359dbf37ab Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:31:32 -0800 Subject: [PATCH 07/10] Lowercase all code snippet language headers --- .../configuration/featureflags/javascript.angular.mdx | 2 +- .../configuration/featureflags/javascript.astro.mdx | 2 +- .../configuration/featureflags/javascript.ember.mdx | 2 +- .../configuration/featureflags/javascript.gatsby.mdx | 2 +- platform-includes/configuration/featureflags/javascript.mdx | 2 +- .../configuration/featureflags/javascript.nextjs.mdx | 2 +- .../configuration/featureflags/javascript.nuxt.mdx | 2 +- .../configuration/featureflags/javascript.react.mdx | 2 +- .../configuration/featureflags/javascript.remix.mdx | 2 +- .../configuration/featureflags/javascript.solid.mdx | 2 +- .../configuration/featureflags/javascript.solidstart.mdx | 2 +- .../configuration/featureflags/javascript.svelte.mdx | 2 +- .../configuration/featureflags/javascript.sveltekit.mdx | 2 +- .../configuration/featureflags/javascript.vue.mdx | 2 +- .../configuration/launchdarkly/javascript.angular.mdx | 2 +- .../configuration/launchdarkly/javascript.astro.mdx | 2 +- .../configuration/launchdarkly/javascript.ember.mdx | 2 +- .../configuration/launchdarkly/javascript.gatsby.mdx | 2 +- platform-includes/configuration/launchdarkly/javascript.mdx | 2 +- .../configuration/launchdarkly/javascript.nextjs.mdx | 2 +- .../configuration/launchdarkly/javascript.nuxt.mdx | 2 +- .../configuration/launchdarkly/javascript.react.mdx | 2 +- .../configuration/launchdarkly/javascript.remix.mdx | 2 +- .../configuration/launchdarkly/javascript.solid.mdx | 2 +- .../configuration/launchdarkly/javascript.solidstart.mdx | 2 +- .../configuration/launchdarkly/javascript.svelte.mdx | 2 +- .../configuration/launchdarkly/javascript.sveltekit.mdx | 2 +- .../configuration/launchdarkly/javascript.vue.mdx | 2 +- .../configuration/openfeature/javascript.angular.mdx | 4 ++-- .../configuration/openfeature/javascript.astro.mdx | 4 ++-- .../configuration/openfeature/javascript.ember.mdx | 4 ++-- .../configuration/openfeature/javascript.gatsby.mdx | 4 ++-- platform-includes/configuration/openfeature/javascript.mdx | 4 ++-- .../configuration/openfeature/javascript.nextjs.mdx | 4 ++-- .../configuration/openfeature/javascript.nuxt.mdx | 4 ++-- .../configuration/openfeature/javascript.react.mdx | 4 ++-- .../configuration/openfeature/javascript.remix.mdx | 4 ++-- .../configuration/openfeature/javascript.solid.mdx | 4 ++-- .../configuration/openfeature/javascript.solidstart.mdx | 4 ++-- .../configuration/openfeature/javascript.svelte.mdx | 4 ++-- .../configuration/openfeature/javascript.sveltekit.mdx | 4 ++-- .../configuration/openfeature/javascript.vue.mdx | 4 ++-- 42 files changed, 56 insertions(+), 56 deletions(-) diff --git a/platform-includes/configuration/featureflags/javascript.angular.mdx b/platform-includes/configuration/featureflags/javascript.angular.mdx index 39e48a6537f27..12075cad640d3 100644 --- a/platform-includes/configuration/featureflags/javascript.angular.mdx +++ b/platform-includes/configuration/featureflags/javascript.angular.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/angular'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.astro.mdx b/platform-includes/configuration/featureflags/javascript.astro.mdx index 7c9fe2767d3c1..260e9b34797c9 100644 --- a/platform-includes/configuration/featureflags/javascript.astro.mdx +++ b/platform-includes/configuration/featureflags/javascript.astro.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/astro'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.ember.mdx b/platform-includes/configuration/featureflags/javascript.ember.mdx index 2dd6c38444c93..36e0309199127 100644 --- a/platform-includes/configuration/featureflags/javascript.ember.mdx +++ b/platform-includes/configuration/featureflags/javascript.ember.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/ember'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.gatsby.mdx b/platform-includes/configuration/featureflags/javascript.gatsby.mdx index 4b01f0382594c..3b56879c11c44 100644 --- a/platform-includes/configuration/featureflags/javascript.gatsby.mdx +++ b/platform-includes/configuration/featureflags/javascript.gatsby.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/gatsby'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.mdx b/platform-includes/configuration/featureflags/javascript.mdx index d57f3f8016ccd..dcb8ab216cb8e 100644 --- a/platform-includes/configuration/featureflags/javascript.mdx +++ b/platform-includes/configuration/featureflags/javascript.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/browser'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.nextjs.mdx b/platform-includes/configuration/featureflags/javascript.nextjs.mdx index a7b4ea4b21445..8bf762135afbe 100644 --- a/platform-includes/configuration/featureflags/javascript.nextjs.mdx +++ b/platform-includes/configuration/featureflags/javascript.nextjs.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/nextjs'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.nuxt.mdx b/platform-includes/configuration/featureflags/javascript.nuxt.mdx index 27664ca393699..52a02e4cfbcbb 100644 --- a/platform-includes/configuration/featureflags/javascript.nuxt.mdx +++ b/platform-includes/configuration/featureflags/javascript.nuxt.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/nuxt'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.react.mdx b/platform-includes/configuration/featureflags/javascript.react.mdx index b5e1244cf48e7..1a08f4060249e 100644 --- a/platform-includes/configuration/featureflags/javascript.react.mdx +++ b/platform-includes/configuration/featureflags/javascript.react.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/react'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.remix.mdx b/platform-includes/configuration/featureflags/javascript.remix.mdx index f600d92d6b40d..9ef5a89d8950e 100644 --- a/platform-includes/configuration/featureflags/javascript.remix.mdx +++ b/platform-includes/configuration/featureflags/javascript.remix.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/remix'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.solid.mdx b/platform-includes/configuration/featureflags/javascript.solid.mdx index 9a579074adb20..1bd4810e65f06 100644 --- a/platform-includes/configuration/featureflags/javascript.solid.mdx +++ b/platform-includes/configuration/featureflags/javascript.solid.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/solid'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.solidstart.mdx b/platform-includes/configuration/featureflags/javascript.solidstart.mdx index 42431fb1966bc..627b9eb10b375 100644 --- a/platform-includes/configuration/featureflags/javascript.solidstart.mdx +++ b/platform-includes/configuration/featureflags/javascript.solidstart.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/solidstart'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.svelte.mdx b/platform-includes/configuration/featureflags/javascript.svelte.mdx index 0ec1558b333cf..abf18eda226b4 100644 --- a/platform-includes/configuration/featureflags/javascript.svelte.mdx +++ b/platform-includes/configuration/featureflags/javascript.svelte.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/svelte'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx index 92fca2ea517c2..a522a2ac4313f 100644 --- a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx +++ b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/sveltekit'; Sentry.init({ diff --git a/platform-includes/configuration/featureflags/javascript.vue.mdx b/platform-includes/configuration/featureflags/javascript.vue.mdx index fa9937813a6dc..3c8595514c4af 100644 --- a/platform-includes/configuration/featureflags/javascript.vue.mdx +++ b/platform-includes/configuration/featureflags/javascript.vue.mdx @@ -1,4 +1,4 @@ -```TypeScript +```typescript import * as Sentry from '@sentry/vue'; Sentry.init({ diff --git a/platform-includes/configuration/launchdarkly/javascript.angular.mdx b/platform-includes/configuration/launchdarkly/javascript.angular.mdx index d1ddab46b353e..c497b1905cf8f 100644 --- a/platform-includes/configuration/launchdarkly/javascript.angular.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.angular.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/angular'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.astro.mdx b/platform-includes/configuration/launchdarkly/javascript.astro.mdx index c1adb63a7c684..37e57e1078577 100644 --- a/platform-includes/configuration/launchdarkly/javascript.astro.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.astro.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/astro'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.ember.mdx b/platform-includes/configuration/launchdarkly/javascript.ember.mdx index 767b342a53ce5..5b71d6fa60a67 100644 --- a/platform-includes/configuration/launchdarkly/javascript.ember.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.ember.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/ember'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx index a05b7fce7d6b3..30b4f7a7f780e 100644 --- a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/gatsby'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.mdx b/platform-includes/configuration/launchdarkly/javascript.mdx index 38a662b25d8ab..267d1698dbc45 100644 --- a/platform-includes/configuration/launchdarkly/javascript.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/browser'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx index 790a8fb36b065..d75a862b4f5b8 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/nextjs'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx index 18b325593d8be..d00d20bb921cb 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/nuxt'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx index 793f9a1a76804..a187b4c0ad727 100644 --- a/platform-includes/configuration/launchdarkly/javascript.react.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/react'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx index 9b26dc95b57b4..8e40e6d91abfd 100644 --- a/platform-includes/configuration/launchdarkly/javascript.remix.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/remix'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.solid.mdx b/platform-includes/configuration/launchdarkly/javascript.solid.mdx index 8235215d6bb1a..bbc7097cd296f 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solid.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solid.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/solid'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx index cfab38115eec2..6ba3b0a80ecb3 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/solidstart'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx index d92630cddf651..e0fbab9219db7 100644 --- a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/svelte'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx index a224091011cf9..c6c43379259c0 100644 --- a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/sveltekit'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/launchdarkly/javascript.vue.mdx b/platform-includes/configuration/launchdarkly/javascript.vue.mdx index 736fbe807e3a4..ce16f1e1a6d32 100644 --- a/platform-includes/configuration/launchdarkly/javascript.vue.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.vue.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the LaunchDark npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) -```JavaScript +```javascript import * as Sentry from '@sentry/vue'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.angular.mdx b/platform-includes/configuration/openfeature/javascript.angular.mdx index 27c29678627c1..aa471593853cd 100644 --- a/platform-includes/configuration/openfeature/javascript.angular.mdx +++ b/platform-includes/configuration/openfeature/javascript.angular.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/angular'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/angular'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.astro.mdx b/platform-includes/configuration/openfeature/javascript.astro.mdx index ddee557ac1cba..daf8da498fb0f 100644 --- a/platform-includes/configuration/openfeature/javascript.astro.mdx +++ b/platform-includes/configuration/openfeature/javascript.astro.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/astro'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/astro'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.ember.mdx b/platform-includes/configuration/openfeature/javascript.ember.mdx index 55d4638a012f2..32835ad51fd87 100644 --- a/platform-includes/configuration/openfeature/javascript.ember.mdx +++ b/platform-includes/configuration/openfeature/javascript.ember.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/ember'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/ember'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.gatsby.mdx b/platform-includes/configuration/openfeature/javascript.gatsby.mdx index 51abd7ad19334..1843c4396e896 100644 --- a/platform-includes/configuration/openfeature/javascript.gatsby.mdx +++ b/platform-includes/configuration/openfeature/javascript.gatsby.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/gatsby'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/gatsby'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.mdx b/platform-includes/configuration/openfeature/javascript.mdx index c90aae4b9811c..e9c1c55ff18c0 100644 --- a/platform-includes/configuration/openfeature/javascript.mdx +++ b/platform-includes/configuration/openfeature/javascript.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/browser'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/browser'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.nextjs.mdx b/platform-includes/configuration/openfeature/javascript.nextjs.mdx index 9df71925a32f7..918152af4728b 100644 --- a/platform-includes/configuration/openfeature/javascript.nextjs.mdx +++ b/platform-includes/configuration/openfeature/javascript.nextjs.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/nextjs'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/nextjs'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.nuxt.mdx b/platform-includes/configuration/openfeature/javascript.nuxt.mdx index 3b8467ade4601..b4c3cab53d0a6 100644 --- a/platform-includes/configuration/openfeature/javascript.nuxt.mdx +++ b/platform-includes/configuration/openfeature/javascript.nuxt.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/nuxt'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/nuxt'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.react.mdx b/platform-includes/configuration/openfeature/javascript.react.mdx index 90ae7576fc060..2aefdc3cd2373 100644 --- a/platform-includes/configuration/openfeature/javascript.react.mdx +++ b/platform-includes/configuration/openfeature/javascript.react.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/react'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/react'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.remix.mdx b/platform-includes/configuration/openfeature/javascript.remix.mdx index b808507f10b03..e2981547547b9 100644 --- a/platform-includes/configuration/openfeature/javascript.remix.mdx +++ b/platform-includes/configuration/openfeature/javascript.remix.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/remix'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/remix'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.solid.mdx b/platform-includes/configuration/openfeature/javascript.solid.mdx index df8e52c21c253..ab3ffabfbfedd 100644 --- a/platform-includes/configuration/openfeature/javascript.solid.mdx +++ b/platform-includes/configuration/openfeature/javascript.solid.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/solid'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/solid'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.solidstart.mdx b/platform-includes/configuration/openfeature/javascript.solidstart.mdx index 78b5d8e1fff1e..700c0ac3e7635 100644 --- a/platform-includes/configuration/openfeature/javascript.solidstart.mdx +++ b/platform-includes/configuration/openfeature/javascript.solidstart.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/solidstart'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/solidstart'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.svelte.mdx b/platform-includes/configuration/openfeature/javascript.svelte.mdx index e18b203fb9fef..caf35e58913f1 100644 --- a/platform-includes/configuration/openfeature/javascript.svelte.mdx +++ b/platform-includes/configuration/openfeature/javascript.svelte.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/svelte'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/svelte'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx index 2f133f9838df4..c7e73563df030 100644 --- a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx +++ b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/sveltekit'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/sveltekit'; import { OpenFeature } from '@openfeature/web-sdk'; diff --git a/platform-includes/configuration/openfeature/javascript.vue.mdx b/platform-includes/configuration/openfeature/javascript.vue.mdx index f81a168e0fe1f..522a060c84d9d 100644 --- a/platform-includes/configuration/openfeature/javascript.vue.mdx +++ b/platform-includes/configuration/openfeature/javascript.vue.mdx @@ -2,7 +2,7 @@ Before using this integration, you need to install and instrument the OpenFeatur npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) -```JavaScript {tabTitle: JavaScript (Track All Evals)} +```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/vue'; import { OpenFeature } from '@openfeature/web-sdk'; @@ -19,7 +19,7 @@ const result = client.getBooleanValue('hello', false); // evaluate with a defaul Sentry.captureException(new Error("Something went wrong!")); ``` -```JavaScript {tabTitle: JavaScript (Track One Client)} +```javascript {tabTitle: JavaScript (Track One Client)} import * as Sentry from '@sentry/vue'; import { OpenFeature } from '@openfeature/web-sdk'; From 4952bdf02b9a38a96d63e2d9ad3502ffde16873e Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:37:52 -0800 Subject: [PATCH 08/10] Rewording from review --- .../common/configuration/integrations/featureflags.mdx | 2 +- .../common/configuration/integrations/launchdarkly.mdx | 2 +- .../common/configuration/integrations/openfeature.mdx | 2 +- .../configuration/featureflags/javascript.angular.mdx | 6 +++--- .../configuration/featureflags/javascript.astro.mdx | 6 +++--- .../configuration/featureflags/javascript.ember.mdx | 6 +++--- .../configuration/featureflags/javascript.gatsby.mdx | 6 +++--- platform-includes/configuration/featureflags/javascript.mdx | 6 +++--- .../configuration/featureflags/javascript.nextjs.mdx | 6 +++--- .../configuration/featureflags/javascript.nuxt.mdx | 6 +++--- .../configuration/featureflags/javascript.react.mdx | 6 +++--- .../configuration/featureflags/javascript.remix.mdx | 6 +++--- .../configuration/featureflags/javascript.solid.mdx | 6 +++--- .../configuration/featureflags/javascript.solidstart.mdx | 6 +++--- .../configuration/featureflags/javascript.svelte.mdx | 6 +++--- .../configuration/featureflags/javascript.sveltekit.mdx | 6 +++--- .../configuration/featureflags/javascript.vue.mdx | 6 +++--- .../configuration/launchdarkly/javascript.angular.mdx | 2 +- .../configuration/launchdarkly/javascript.astro.mdx | 2 +- .../configuration/launchdarkly/javascript.ember.mdx | 2 +- .../configuration/launchdarkly/javascript.gatsby.mdx | 2 +- platform-includes/configuration/launchdarkly/javascript.mdx | 2 +- .../configuration/launchdarkly/javascript.nextjs.mdx | 2 +- .../configuration/launchdarkly/javascript.nuxt.mdx | 2 +- .../configuration/launchdarkly/javascript.react.mdx | 2 +- .../configuration/launchdarkly/javascript.remix.mdx | 2 +- .../configuration/launchdarkly/javascript.solid.mdx | 2 +- .../configuration/launchdarkly/javascript.solidstart.mdx | 2 +- .../configuration/launchdarkly/javascript.svelte.mdx | 2 +- .../configuration/launchdarkly/javascript.sveltekit.mdx | 2 +- .../configuration/launchdarkly/javascript.vue.mdx | 2 +- .../configuration/openfeature/javascript.angular.mdx | 4 ++-- .../configuration/openfeature/javascript.astro.mdx | 4 ++-- .../configuration/openfeature/javascript.ember.mdx | 4 ++-- .../configuration/openfeature/javascript.gatsby.mdx | 4 ++-- platform-includes/configuration/openfeature/javascript.mdx | 4 ++-- .../configuration/openfeature/javascript.nextjs.mdx | 4 ++-- .../configuration/openfeature/javascript.nuxt.mdx | 4 ++-- .../configuration/openfeature/javascript.react.mdx | 4 ++-- .../configuration/openfeature/javascript.remix.mdx | 4 ++-- .../configuration/openfeature/javascript.solid.mdx | 4 ++-- .../configuration/openfeature/javascript.solidstart.mdx | 4 ++-- .../configuration/openfeature/javascript.svelte.mdx | 4 ++-- .../configuration/openfeature/javascript.sveltekit.mdx | 4 ++-- .../configuration/openfeature/javascript.vue.mdx | 4 ++-- 45 files changed, 87 insertions(+), 87 deletions(-) diff --git a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx index 7c621c3848792..718234edd9b85 100644 --- a/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/featureflags.mdx @@ -43,6 +43,6 @@ _Import names: `Sentry.featureFlagsIntegration` and `type Sentry.FeatureFlagsInt -Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". +Visit the Sentry website and confirm that your error event has recorded the feature flag "test-flag" and its value "false". diff --git a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx index afd019772f787..26e4791c9beac 100644 --- a/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/launchdarkly.mdx @@ -35,6 +35,6 @@ _Import names: `Sentry.launchDarklyIntegration` and `Sentry.buildLaunchDarklyFla -Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". +Visit the Sentry website and confirm that your error event has recorded the feature flag "test-flag" and its value "false". diff --git a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx index 56c6b1f924377..2d64f586f66f8 100644 --- a/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/openfeature.mdx @@ -35,6 +35,6 @@ _Import name: `Sentry.openFeatureIntegration` and `Sentry.OpenFeatureIntegration -Visit the Sentry website and confirm that your error event has recorded the feature flag "hello" and its value "false". +Visit the Sentry website and confirm that your error event has recorded the feature flag "test-flag" and its value "false". diff --git a/platform-includes/configuration/featureflags/javascript.angular.mdx b/platform-includes/configuration/featureflags/javascript.angular.mdx index 12075cad640d3..c8d850a898d89 100644 --- a/platform-includes/configuration/featureflags/javascript.angular.mdx +++ b/platform-includes/configuration/featureflags/javascript.angular.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.astro.mdx b/platform-includes/configuration/featureflags/javascript.astro.mdx index 260e9b34797c9..27d96d5919aca 100644 --- a/platform-includes/configuration/featureflags/javascript.astro.mdx +++ b/platform-includes/configuration/featureflags/javascript.astro.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.ember.mdx b/platform-includes/configuration/featureflags/javascript.ember.mdx index 36e0309199127..e487d0e448503 100644 --- a/platform-includes/configuration/featureflags/javascript.ember.mdx +++ b/platform-includes/configuration/featureflags/javascript.ember.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.gatsby.mdx b/platform-includes/configuration/featureflags/javascript.gatsby.mdx index 3b56879c11c44..3bfb3a46859c2 100644 --- a/platform-includes/configuration/featureflags/javascript.gatsby.mdx +++ b/platform-includes/configuration/featureflags/javascript.gatsby.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.mdx b/platform-includes/configuration/featureflags/javascript.mdx index dcb8ab216cb8e..df88a32029ab4 100644 --- a/platform-includes/configuration/featureflags/javascript.mdx +++ b/platform-includes/configuration/featureflags/javascript.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.nextjs.mdx b/platform-includes/configuration/featureflags/javascript.nextjs.mdx index 8bf762135afbe..d160ea239108f 100644 --- a/platform-includes/configuration/featureflags/javascript.nextjs.mdx +++ b/platform-includes/configuration/featureflags/javascript.nextjs.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.nuxt.mdx b/platform-includes/configuration/featureflags/javascript.nuxt.mdx index 52a02e4cfbcbb..6e5b605e92fae 100644 --- a/platform-includes/configuration/featureflags/javascript.nuxt.mdx +++ b/platform-includes/configuration/featureflags/javascript.nuxt.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.react.mdx b/platform-includes/configuration/featureflags/javascript.react.mdx index 1a08f4060249e..f8f8d11983b36 100644 --- a/platform-includes/configuration/featureflags/javascript.react.mdx +++ b/platform-includes/configuration/featureflags/javascript.react.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.remix.mdx b/platform-includes/configuration/featureflags/javascript.remix.mdx index 9ef5a89d8950e..c1059605e82a9 100644 --- a/platform-includes/configuration/featureflags/javascript.remix.mdx +++ b/platform-includes/configuration/featureflags/javascript.remix.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.solid.mdx b/platform-includes/configuration/featureflags/javascript.solid.mdx index 1bd4810e65f06..2296ba4563e0b 100644 --- a/platform-includes/configuration/featureflags/javascript.solid.mdx +++ b/platform-includes/configuration/featureflags/javascript.solid.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.solidstart.mdx b/platform-includes/configuration/featureflags/javascript.solidstart.mdx index 627b9eb10b375..51bfaf37ead7c 100644 --- a/platform-includes/configuration/featureflags/javascript.solidstart.mdx +++ b/platform-includes/configuration/featureflags/javascript.solidstart.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.svelte.mdx b/platform-includes/configuration/featureflags/javascript.svelte.mdx index abf18eda226b4..8cbf7d45cc625 100644 --- a/platform-includes/configuration/featureflags/javascript.svelte.mdx +++ b/platform-includes/configuration/featureflags/javascript.svelte.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx index a522a2ac4313f..4288cba4ee0a0 100644 --- a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx +++ b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/featureflags/javascript.vue.mdx b/platform-includes/configuration/featureflags/javascript.vue.mdx index 3c8595514c4af..78f71593a7515 100644 --- a/platform-includes/configuration/featureflags/javascript.vue.mdx +++ b/platform-includes/configuration/featureflags/javascript.vue.mdx @@ -9,9 +9,9 @@ Sentry.init({ const flagsIntegration = Sentry.getClient()? .getIntegrationByName('FeatureFlags'); if (flagsIntegration) { - flagsIntegration.addFeatureFlag('hello', false); + flagsIntegration.addFeatureFlag('test-flag', false); } else { - // set up failed + // Something went wrong, check your DSN and/or integrations } -Sentry.captureException(new Error('broke')); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.angular.mdx b/platform-includes/configuration/launchdarkly/javascript.angular.mdx index c497b1905cf8f..1b77a50b86431 100644 --- a/platform-includes/configuration/launchdarkly/javascript.angular.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.angular.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.astro.mdx b/platform-includes/configuration/launchdarkly/javascript.astro.mdx index 37e57e1078577..459d007930a60 100644 --- a/platform-includes/configuration/launchdarkly/javascript.astro.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.astro.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.ember.mdx b/platform-includes/configuration/launchdarkly/javascript.ember.mdx index 5b71d6fa60a67..26511c0fcae7e 100644 --- a/platform-includes/configuration/launchdarkly/javascript.ember.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.ember.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx index 30b4f7a7f780e..71fef7a2746b6 100644 --- a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.mdx b/platform-includes/configuration/launchdarkly/javascript.mdx index 267d1698dbc45..ce9f65ca2e9e3 100644 --- a/platform-includes/configuration/launchdarkly/javascript.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx index d75a862b4f5b8..f45d3deea4dc4 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx index d00d20bb921cb..fac67be9d3111 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx index a187b4c0ad727..2d08c87f5d22f 100644 --- a/platform-includes/configuration/launchdarkly/javascript.react.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx index 8e40e6d91abfd..cdd30f907e0f0 100644 --- a/platform-includes/configuration/launchdarkly/javascript.remix.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solid.mdx b/platform-includes/configuration/launchdarkly/javascript.solid.mdx index bbc7097cd296f..42de571f2c865 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solid.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solid.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx index 6ba3b0a80ecb3..0a5f4de5bb9cd 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx index e0fbab9219db7..ebab562ff3ef0 100644 --- a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx index c6c43379259c0..cbdb17a9f3bd0 100644 --- a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.vue.mdx b/platform-includes/configuration/launchdarkly/javascript.vue.mdx index ce16f1e1a6d32..83470ed1dcaed 100644 --- a/platform-includes/configuration/launchdarkly/javascript.vue.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.vue.mdx @@ -18,7 +18,7 @@ const ldClient = LaunchDarkly.initialize( ); // Evaluate a flag with a default value. You may have to wait for your client to initialize first. -ldClient?.variation("hello", false); +ldClient?.variation('test-flag', false); Sentry.captureException(new Error("Something went wrong!")) ``` diff --git a/platform-includes/configuration/openfeature/javascript.angular.mdx b/platform-includes/configuration/openfeature/javascript.angular.mdx index aa471593853cd..406b7cb205562 100644 --- a/platform-includes/configuration/openfeature/javascript.angular.mdx +++ b/platform-includes/configuration/openfeature/javascript.angular.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.astro.mdx b/platform-includes/configuration/openfeature/javascript.astro.mdx index daf8da498fb0f..fdff6d99b83a7 100644 --- a/platform-includes/configuration/openfeature/javascript.astro.mdx +++ b/platform-includes/configuration/openfeature/javascript.astro.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.ember.mdx b/platform-includes/configuration/openfeature/javascript.ember.mdx index 32835ad51fd87..d8367d3477f05 100644 --- a/platform-includes/configuration/openfeature/javascript.ember.mdx +++ b/platform-includes/configuration/openfeature/javascript.ember.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.gatsby.mdx b/platform-includes/configuration/openfeature/javascript.gatsby.mdx index 1843c4396e896..8ef18c7706d97 100644 --- a/platform-includes/configuration/openfeature/javascript.gatsby.mdx +++ b/platform-includes/configuration/openfeature/javascript.gatsby.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.mdx b/platform-includes/configuration/openfeature/javascript.mdx index e9c1c55ff18c0..0384f57430f9c 100644 --- a/platform-includes/configuration/openfeature/javascript.mdx +++ b/platform-includes/configuration/openfeature/javascript.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.nextjs.mdx b/platform-includes/configuration/openfeature/javascript.nextjs.mdx index 918152af4728b..33bbe5cf19785 100644 --- a/platform-includes/configuration/openfeature/javascript.nextjs.mdx +++ b/platform-includes/configuration/openfeature/javascript.nextjs.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.nuxt.mdx b/platform-includes/configuration/openfeature/javascript.nuxt.mdx index b4c3cab53d0a6..fe599d72f7043 100644 --- a/platform-includes/configuration/openfeature/javascript.nuxt.mdx +++ b/platform-includes/configuration/openfeature/javascript.nuxt.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.react.mdx b/platform-includes/configuration/openfeature/javascript.react.mdx index 2aefdc3cd2373..2dc369b70edc2 100644 --- a/platform-includes/configuration/openfeature/javascript.react.mdx +++ b/platform-includes/configuration/openfeature/javascript.react.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.remix.mdx b/platform-includes/configuration/openfeature/javascript.remix.mdx index e2981547547b9..5e6add5148add 100644 --- a/platform-includes/configuration/openfeature/javascript.remix.mdx +++ b/platform-includes/configuration/openfeature/javascript.remix.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.solid.mdx b/platform-includes/configuration/openfeature/javascript.solid.mdx index ab3ffabfbfedd..36d3c7fc6bfc5 100644 --- a/platform-includes/configuration/openfeature/javascript.solid.mdx +++ b/platform-includes/configuration/openfeature/javascript.solid.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.solidstart.mdx b/platform-includes/configuration/openfeature/javascript.solidstart.mdx index 700c0ac3e7635..caf5efbc14c54 100644 --- a/platform-includes/configuration/openfeature/javascript.solidstart.mdx +++ b/platform-includes/configuration/openfeature/javascript.solidstart.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.svelte.mdx b/platform-includes/configuration/openfeature/javascript.svelte.mdx index caf35e58913f1..108dd4984cf69 100644 --- a/platform-includes/configuration/openfeature/javascript.svelte.mdx +++ b/platform-includes/configuration/openfeature/javascript.svelte.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx index c7e73563df030..ae66bb58b9a72 100644 --- a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx +++ b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` diff --git a/platform-includes/configuration/openfeature/javascript.vue.mdx b/platform-includes/configuration/openfeature/javascript.vue.mdx index 522a060c84d9d..93e0ed0198a9f 100644 --- a/platform-includes/configuration/openfeature/javascript.vue.mdx +++ b/platform-includes/configuration/openfeature/javascript.vue.mdx @@ -15,7 +15,7 @@ OpenFeature.setProvider(new MyProviderOfChoice()); OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` @@ -32,6 +32,6 @@ OpenFeature.setProvider(new MyProviderOfChoice()); const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); -const result = client.getBooleanValue('hello', false); // evaluate with a default value +const result = client.getBooleanValue('test-flag', false); // evaluate with a default value Sentry.captureException(new Error("Something went wrong!")); ``` From 99741ae5f5a6fcd8ddfc03d24a071ea577d0be2d Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:39:14 -0800 Subject: [PATCH 09/10] Use single quotes in all code snippets --- .../configuration/featureflags/javascript.angular.mdx | 2 +- .../configuration/featureflags/javascript.astro.mdx | 2 +- .../configuration/featureflags/javascript.ember.mdx | 2 +- .../configuration/featureflags/javascript.gatsby.mdx | 2 +- .../configuration/featureflags/javascript.mdx | 2 +- .../configuration/featureflags/javascript.nextjs.mdx | 2 +- .../configuration/featureflags/javascript.nuxt.mdx | 2 +- .../configuration/featureflags/javascript.react.mdx | 2 +- .../configuration/featureflags/javascript.remix.mdx | 2 +- .../configuration/featureflags/javascript.solid.mdx | 2 +- .../configuration/featureflags/javascript.solidstart.mdx | 2 +- .../configuration/featureflags/javascript.svelte.mdx | 2 +- .../configuration/featureflags/javascript.sveltekit.mdx | 2 +- .../configuration/featureflags/javascript.vue.mdx | 2 +- .../configuration/launchdarkly/javascript.angular.mdx | 4 ++-- .../configuration/launchdarkly/javascript.astro.mdx | 4 ++-- .../configuration/launchdarkly/javascript.ember.mdx | 4 ++-- .../configuration/launchdarkly/javascript.gatsby.mdx | 4 ++-- .../configuration/launchdarkly/javascript.mdx | 4 ++-- .../configuration/launchdarkly/javascript.nextjs.mdx | 4 ++-- .../configuration/launchdarkly/javascript.nuxt.mdx | 4 ++-- .../configuration/launchdarkly/javascript.react.mdx | 4 ++-- .../configuration/launchdarkly/javascript.remix.mdx | 4 ++-- .../configuration/launchdarkly/javascript.solid.mdx | 4 ++-- .../configuration/launchdarkly/javascript.solidstart.mdx | 4 ++-- .../configuration/launchdarkly/javascript.svelte.mdx | 4 ++-- .../configuration/launchdarkly/javascript.sveltekit.mdx | 4 ++-- .../configuration/launchdarkly/javascript.vue.mdx | 4 ++-- .../configuration/openfeature/javascript.angular.mdx | 8 ++++---- .../configuration/openfeature/javascript.astro.mdx | 8 ++++---- .../configuration/openfeature/javascript.ember.mdx | 8 ++++---- .../configuration/openfeature/javascript.gatsby.mdx | 8 ++++---- .../configuration/openfeature/javascript.mdx | 8 ++++---- .../configuration/openfeature/javascript.nextjs.mdx | 8 ++++---- .../configuration/openfeature/javascript.nuxt.mdx | 8 ++++---- .../configuration/openfeature/javascript.react.mdx | 8 ++++---- .../configuration/openfeature/javascript.remix.mdx | 8 ++++---- .../configuration/openfeature/javascript.solid.mdx | 8 ++++---- .../configuration/openfeature/javascript.solidstart.mdx | 8 ++++---- .../configuration/openfeature/javascript.svelte.mdx | 8 ++++---- .../configuration/openfeature/javascript.sveltekit.mdx | 8 ++++---- .../configuration/openfeature/javascript.vue.mdx | 8 ++++---- 42 files changed, 98 insertions(+), 98 deletions(-) diff --git a/platform-includes/configuration/featureflags/javascript.angular.mdx b/platform-includes/configuration/featureflags/javascript.angular.mdx index c8d850a898d89..16d87819306c2 100644 --- a/platform-includes/configuration/featureflags/javascript.angular.mdx +++ b/platform-includes/configuration/featureflags/javascript.angular.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/angular'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.astro.mdx b/platform-includes/configuration/featureflags/javascript.astro.mdx index 27d96d5919aca..f35f07bd7d69e 100644 --- a/platform-includes/configuration/featureflags/javascript.astro.mdx +++ b/platform-includes/configuration/featureflags/javascript.astro.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/astro'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.ember.mdx b/platform-includes/configuration/featureflags/javascript.ember.mdx index e487d0e448503..f354e73558633 100644 --- a/platform-includes/configuration/featureflags/javascript.ember.mdx +++ b/platform-includes/configuration/featureflags/javascript.ember.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/ember'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.gatsby.mdx b/platform-includes/configuration/featureflags/javascript.gatsby.mdx index 3bfb3a46859c2..b7b37fe0901fc 100644 --- a/platform-includes/configuration/featureflags/javascript.gatsby.mdx +++ b/platform-includes/configuration/featureflags/javascript.gatsby.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/gatsby'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.mdx b/platform-includes/configuration/featureflags/javascript.mdx index df88a32029ab4..e42935801bed6 100644 --- a/platform-includes/configuration/featureflags/javascript.mdx +++ b/platform-includes/configuration/featureflags/javascript.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/browser'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.nextjs.mdx b/platform-includes/configuration/featureflags/javascript.nextjs.mdx index d160ea239108f..53c79e361583b 100644 --- a/platform-includes/configuration/featureflags/javascript.nextjs.mdx +++ b/platform-includes/configuration/featureflags/javascript.nextjs.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/nextjs'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.nuxt.mdx b/platform-includes/configuration/featureflags/javascript.nuxt.mdx index 6e5b605e92fae..5ce78aaf385da 100644 --- a/platform-includes/configuration/featureflags/javascript.nuxt.mdx +++ b/platform-includes/configuration/featureflags/javascript.nuxt.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/nuxt'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.react.mdx b/platform-includes/configuration/featureflags/javascript.react.mdx index f8f8d11983b36..c2429e713f227 100644 --- a/platform-includes/configuration/featureflags/javascript.react.mdx +++ b/platform-includes/configuration/featureflags/javascript.react.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/react'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.remix.mdx b/platform-includes/configuration/featureflags/javascript.remix.mdx index c1059605e82a9..27d3e901dcbfa 100644 --- a/platform-includes/configuration/featureflags/javascript.remix.mdx +++ b/platform-includes/configuration/featureflags/javascript.remix.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/remix'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.solid.mdx b/platform-includes/configuration/featureflags/javascript.solid.mdx index 2296ba4563e0b..d7cb038bea623 100644 --- a/platform-includes/configuration/featureflags/javascript.solid.mdx +++ b/platform-includes/configuration/featureflags/javascript.solid.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/solid'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.solidstart.mdx b/platform-includes/configuration/featureflags/javascript.solidstart.mdx index 51bfaf37ead7c..893696a256bb4 100644 --- a/platform-includes/configuration/featureflags/javascript.solidstart.mdx +++ b/platform-includes/configuration/featureflags/javascript.solidstart.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/solidstart'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.svelte.mdx b/platform-includes/configuration/featureflags/javascript.svelte.mdx index 8cbf7d45cc625..7ac6a5a03c3cd 100644 --- a/platform-includes/configuration/featureflags/javascript.svelte.mdx +++ b/platform-includes/configuration/featureflags/javascript.svelte.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/svelte'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx index 4288cba4ee0a0..98026634ce36a 100644 --- a/platform-includes/configuration/featureflags/javascript.sveltekit.mdx +++ b/platform-includes/configuration/featureflags/javascript.sveltekit.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/sveltekit'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/featureflags/javascript.vue.mdx b/platform-includes/configuration/featureflags/javascript.vue.mdx index 78f71593a7515..b7ce140ce2d42 100644 --- a/platform-includes/configuration/featureflags/javascript.vue.mdx +++ b/platform-includes/configuration/featureflags/javascript.vue.mdx @@ -2,7 +2,7 @@ import * as Sentry from '@sentry/vue'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.featureFlagsIntegration()] }); diff --git a/platform-includes/configuration/launchdarkly/javascript.angular.mdx b/platform-includes/configuration/launchdarkly/javascript.angular.mdx index 1b77a50b86431..fd1963dce28ff 100644 --- a/platform-includes/configuration/launchdarkly/javascript.angular.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.angular.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/angular'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.astro.mdx b/platform-includes/configuration/launchdarkly/javascript.astro.mdx index 459d007930a60..3d8928b1f0126 100644 --- a/platform-includes/configuration/launchdarkly/javascript.astro.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.astro.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/astro'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.ember.mdx b/platform-includes/configuration/launchdarkly/javascript.ember.mdx index 26511c0fcae7e..ea6a6d4b4d077 100644 --- a/platform-includes/configuration/launchdarkly/javascript.ember.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.ember.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/ember'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx index 71fef7a2746b6..1b7caa91b5159 100644 --- a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/gatsby'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.mdx b/platform-includes/configuration/launchdarkly/javascript.mdx index ce9f65ca2e9e3..30480901ee45d 100644 --- a/platform-includes/configuration/launchdarkly/javascript.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/browser'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx index f45d3deea4dc4..55d98cfddaf79 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/nextjs'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx index fac67be9d3111..fc95521c230eb 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/nuxt'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx index 2d08c87f5d22f..ab72d6cee92d3 100644 --- a/platform-includes/configuration/launchdarkly/javascript.react.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/react'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx index cdd30f907e0f0..2e606284e4a39 100644 --- a/platform-includes/configuration/launchdarkly/javascript.remix.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/remix'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solid.mdx b/platform-includes/configuration/launchdarkly/javascript.solid.mdx index 42de571f2c865..832fa6d45e95a 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solid.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solid.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/solid'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx index 0a5f4de5bb9cd..466becf8809c3 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/solidstart'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx index ebab562ff3ef0..6ef5c2d992076 100644 --- a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/svelte'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx index cbdb17a9f3bd0..6090ea790cbf2 100644 --- a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/sveltekit'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/launchdarkly/javascript.vue.mdx b/platform-includes/configuration/launchdarkly/javascript.vue.mdx index 83470ed1dcaed..6c939662380bc 100644 --- a/platform-includes/configuration/launchdarkly/javascript.vue.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.vue.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/vue'; import * as LaunchDarkly from 'launchdarkly-js-client-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.launchDarklyIntegration()] }); @@ -20,5 +20,5 @@ const ldClient = LaunchDarkly.initialize( // Evaluate a flag with a default value. You may have to wait for your client to initialize first. ldClient?.variation('test-flag', false); -Sentry.captureException(new Error("Something went wrong!")) +Sentry.captureException(new Error('Something went wrong!')) ``` diff --git a/platform-includes/configuration/openfeature/javascript.angular.mdx b/platform-includes/configuration/openfeature/javascript.angular.mdx index 406b7cb205562..1c3c2784b5d2f 100644 --- a/platform-includes/configuration/openfeature/javascript.angular.mdx +++ b/platform-includes/configuration/openfeature/javascript.angular.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/angular'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/angular'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.astro.mdx b/platform-includes/configuration/openfeature/javascript.astro.mdx index fdff6d99b83a7..10304faf1d845 100644 --- a/platform-includes/configuration/openfeature/javascript.astro.mdx +++ b/platform-includes/configuration/openfeature/javascript.astro.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/astro'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/astro'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.ember.mdx b/platform-includes/configuration/openfeature/javascript.ember.mdx index d8367d3477f05..6e024db440a65 100644 --- a/platform-includes/configuration/openfeature/javascript.ember.mdx +++ b/platform-includes/configuration/openfeature/javascript.ember.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/ember'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/ember'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.gatsby.mdx b/platform-includes/configuration/openfeature/javascript.gatsby.mdx index 8ef18c7706d97..2e12ad85a16a4 100644 --- a/platform-includes/configuration/openfeature/javascript.gatsby.mdx +++ b/platform-includes/configuration/openfeature/javascript.gatsby.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/gatsby'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/gatsby'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.mdx b/platform-includes/configuration/openfeature/javascript.mdx index 0384f57430f9c..0110ee97bfbea 100644 --- a/platform-includes/configuration/openfeature/javascript.mdx +++ b/platform-includes/configuration/openfeature/javascript.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/browser'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/browser'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.nextjs.mdx b/platform-includes/configuration/openfeature/javascript.nextjs.mdx index 33bbe5cf19785..706007cc42cb3 100644 --- a/platform-includes/configuration/openfeature/javascript.nextjs.mdx +++ b/platform-includes/configuration/openfeature/javascript.nextjs.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/nextjs'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/nextjs'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.nuxt.mdx b/platform-includes/configuration/openfeature/javascript.nuxt.mdx index fe599d72f7043..9efbb2b7f4138 100644 --- a/platform-includes/configuration/openfeature/javascript.nuxt.mdx +++ b/platform-includes/configuration/openfeature/javascript.nuxt.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/nuxt'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/nuxt'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.react.mdx b/platform-includes/configuration/openfeature/javascript.react.mdx index 2dc369b70edc2..42cdfea845433 100644 --- a/platform-includes/configuration/openfeature/javascript.react.mdx +++ b/platform-includes/configuration/openfeature/javascript.react.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/react'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/react'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.remix.mdx b/platform-includes/configuration/openfeature/javascript.remix.mdx index 5e6add5148add..80a534026e332 100644 --- a/platform-includes/configuration/openfeature/javascript.remix.mdx +++ b/platform-includes/configuration/openfeature/javascript.remix.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/remix'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/remix'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.solid.mdx b/platform-includes/configuration/openfeature/javascript.solid.mdx index 36d3c7fc6bfc5..7b819925dc5fa 100644 --- a/platform-includes/configuration/openfeature/javascript.solid.mdx +++ b/platform-includes/configuration/openfeature/javascript.solid.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/solid'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/solid'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.solidstart.mdx b/platform-includes/configuration/openfeature/javascript.solidstart.mdx index caf5efbc14c54..c3344dbaad7b4 100644 --- a/platform-includes/configuration/openfeature/javascript.solidstart.mdx +++ b/platform-includes/configuration/openfeature/javascript.solidstart.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/solidstart'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/solidstart'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.svelte.mdx b/platform-includes/configuration/openfeature/javascript.svelte.mdx index 108dd4984cf69..af6dbd0fb4bba 100644 --- a/platform-includes/configuration/openfeature/javascript.svelte.mdx +++ b/platform-includes/configuration/openfeature/javascript.svelte.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/svelte'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/svelte'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx index ae66bb58b9a72..c366bcb8186ca 100644 --- a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx +++ b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/sveltekit'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/sveltekit'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` diff --git a/platform-includes/configuration/openfeature/javascript.vue.mdx b/platform-includes/configuration/openfeature/javascript.vue.mdx index 93e0ed0198a9f..ce48165c39ea3 100644 --- a/platform-includes/configuration/openfeature/javascript.vue.mdx +++ b/platform-includes/configuration/openfeature/javascript.vue.mdx @@ -7,7 +7,7 @@ import * as Sentry from '@sentry/vue'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -16,7 +16,7 @@ OpenFeature.addHooks(new Sentry.OpenFeatureIntegrationHook()); const client = OpenFeature.getClient(); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` ```javascript {tabTitle: JavaScript (Track One Client)} @@ -24,7 +24,7 @@ import * as Sentry from '@sentry/vue'; import { OpenFeature } from '@openfeature/web-sdk'; Sentry.init({ - dsn: "___PUBLIC_DSN___", + dsn: '___PUBLIC_DSN___', integrations: [Sentry.openFeatureIntegration()] }); @@ -33,5 +33,5 @@ const client = OpenFeature.getClient(); client.addHooks(new Sentry.OpenFeatureIntegrationHook()); const result = client.getBooleanValue('test-flag', false); // evaluate with a default value -Sentry.captureException(new Error("Something went wrong!")); +Sentry.captureException(new Error('Something went wrong!')); ``` From c0707c159ef2dfe37ba1242e740e3040820146f1 Mon Sep 17 00:00:00 2001 From: Andrew Liu <159852527+aliu39@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:16:51 -0800 Subject: [PATCH 10/10] Update provider pkg and docs links --- .../configuration/launchdarkly/javascript.angular.mdx | 4 +--- .../configuration/launchdarkly/javascript.astro.mdx | 4 +--- .../configuration/launchdarkly/javascript.ember.mdx | 4 +--- .../configuration/launchdarkly/javascript.gatsby.mdx | 4 +--- platform-includes/configuration/launchdarkly/javascript.mdx | 4 +--- .../configuration/launchdarkly/javascript.nextjs.mdx | 4 +--- .../configuration/launchdarkly/javascript.nuxt.mdx | 4 +--- .../configuration/launchdarkly/javascript.react.mdx | 4 +--- .../configuration/launchdarkly/javascript.remix.mdx | 4 +--- .../configuration/launchdarkly/javascript.solid.mdx | 4 +--- .../configuration/launchdarkly/javascript.solidstart.mdx | 4 +--- .../configuration/launchdarkly/javascript.svelte.mdx | 4 +--- .../configuration/launchdarkly/javascript.sveltekit.mdx | 4 +--- .../configuration/launchdarkly/javascript.vue.mdx | 4 +--- .../configuration/openfeature/javascript.angular.mdx | 4 +--- .../configuration/openfeature/javascript.astro.mdx | 4 +--- .../configuration/openfeature/javascript.ember.mdx | 4 +--- .../configuration/openfeature/javascript.gatsby.mdx | 4 +--- platform-includes/configuration/openfeature/javascript.mdx | 4 +--- .../configuration/openfeature/javascript.nextjs.mdx | 4 +--- .../configuration/openfeature/javascript.nuxt.mdx | 4 +--- .../configuration/openfeature/javascript.react.mdx | 4 +--- .../configuration/openfeature/javascript.remix.mdx | 4 +--- .../configuration/openfeature/javascript.solid.mdx | 4 +--- .../configuration/openfeature/javascript.solidstart.mdx | 4 +--- .../configuration/openfeature/javascript.svelte.mdx | 4 +--- .../configuration/openfeature/javascript.sveltekit.mdx | 4 +--- .../configuration/openfeature/javascript.vue.mdx | 4 +--- 28 files changed, 28 insertions(+), 84 deletions(-) diff --git a/platform-includes/configuration/launchdarkly/javascript.angular.mdx b/platform-includes/configuration/launchdarkly/javascript.angular.mdx index fd1963dce28ff..41cb3f7a43a13 100644 --- a/platform-includes/configuration/launchdarkly/javascript.angular.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.angular.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/angular'; diff --git a/platform-includes/configuration/launchdarkly/javascript.astro.mdx b/platform-includes/configuration/launchdarkly/javascript.astro.mdx index 3d8928b1f0126..c7b5c0ae3e631 100644 --- a/platform-includes/configuration/launchdarkly/javascript.astro.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.astro.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/astro'; diff --git a/platform-includes/configuration/launchdarkly/javascript.ember.mdx b/platform-includes/configuration/launchdarkly/javascript.ember.mdx index ea6a6d4b4d077..e4d7af31a2f26 100644 --- a/platform-includes/configuration/launchdarkly/javascript.ember.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.ember.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/ember'; diff --git a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx index 1b7caa91b5159..2a2c1524a0afc 100644 --- a/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.gatsby.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/gatsby'; diff --git a/platform-includes/configuration/launchdarkly/javascript.mdx b/platform-includes/configuration/launchdarkly/javascript.mdx index 30480901ee45d..e2c5d22036f80 100644 --- a/platform-includes/configuration/launchdarkly/javascript.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/browser'; diff --git a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx index 55d98cfddaf79..0f3a712f63c44 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nextjs.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/nextjs'; diff --git a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx index fc95521c230eb..a14f1ac217fd6 100644 --- a/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.nuxt.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/nuxt'; diff --git a/platform-includes/configuration/launchdarkly/javascript.react.mdx b/platform-includes/configuration/launchdarkly/javascript.react.mdx index ab72d6cee92d3..5110fad9694cb 100644 --- a/platform-includes/configuration/launchdarkly/javascript.react.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.react.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/react'; diff --git a/platform-includes/configuration/launchdarkly/javascript.remix.mdx b/platform-includes/configuration/launchdarkly/javascript.remix.mdx index 2e606284e4a39..86ba7e174961b 100644 --- a/platform-includes/configuration/launchdarkly/javascript.remix.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.remix.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/remix'; diff --git a/platform-includes/configuration/launchdarkly/javascript.solid.mdx b/platform-includes/configuration/launchdarkly/javascript.solid.mdx index 832fa6d45e95a..540b632995312 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solid.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solid.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/solid'; diff --git a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx index 466becf8809c3..5b6fb92aededc 100644 --- a/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.solidstart.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/solidstart'; diff --git a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx index 6ef5c2d992076..093c1329faef0 100644 --- a/platform-includes/configuration/launchdarkly/javascript.svelte.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.svelte.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/svelte'; diff --git a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx index 6090ea790cbf2..ef75d7eda3b94 100644 --- a/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.sveltekit.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/sveltekit'; diff --git a/platform-includes/configuration/launchdarkly/javascript.vue.mdx b/platform-includes/configuration/launchdarkly/javascript.vue.mdx index 6c939662380bc..7051982c3f56d 100644 --- a/platform-includes/configuration/launchdarkly/javascript.vue.mdx +++ b/platform-includes/configuration/launchdarkly/javascript.vue.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the LaunchDarkly SDK in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). - -npm package: [`launchdarkly-js-client-sdk`](https://www.npmjs.com/package/launchdarkly-js-client-sdk) +Before using this integration, you need to install and instrument the [LaunchDarkly SDK](https://www.npmjs.com/package/launchdarkly-js-client-sdk) in your app. Learn more by reading [LaunchDarkly's docs](https://docs.launchdarkly.com/sdk/client-side/javascript). ```javascript import * as Sentry from '@sentry/vue'; diff --git a/platform-includes/configuration/openfeature/javascript.angular.mdx b/platform-includes/configuration/openfeature/javascript.angular.mdx index 1c3c2784b5d2f..292b2fb415a0f 100644 --- a/platform-includes/configuration/openfeature/javascript.angular.mdx +++ b/platform-includes/configuration/openfeature/javascript.angular.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/angular'; diff --git a/platform-includes/configuration/openfeature/javascript.astro.mdx b/platform-includes/configuration/openfeature/javascript.astro.mdx index 10304faf1d845..168429f0986f8 100644 --- a/platform-includes/configuration/openfeature/javascript.astro.mdx +++ b/platform-includes/configuration/openfeature/javascript.astro.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/astro'; diff --git a/platform-includes/configuration/openfeature/javascript.ember.mdx b/platform-includes/configuration/openfeature/javascript.ember.mdx index 6e024db440a65..10b6769b46068 100644 --- a/platform-includes/configuration/openfeature/javascript.ember.mdx +++ b/platform-includes/configuration/openfeature/javascript.ember.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/ember'; diff --git a/platform-includes/configuration/openfeature/javascript.gatsby.mdx b/platform-includes/configuration/openfeature/javascript.gatsby.mdx index 2e12ad85a16a4..1e748624b99f6 100644 --- a/platform-includes/configuration/openfeature/javascript.gatsby.mdx +++ b/platform-includes/configuration/openfeature/javascript.gatsby.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/gatsby'; diff --git a/platform-includes/configuration/openfeature/javascript.mdx b/platform-includes/configuration/openfeature/javascript.mdx index 0110ee97bfbea..1af6993885a4f 100644 --- a/platform-includes/configuration/openfeature/javascript.mdx +++ b/platform-includes/configuration/openfeature/javascript.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/browser'; diff --git a/platform-includes/configuration/openfeature/javascript.nextjs.mdx b/platform-includes/configuration/openfeature/javascript.nextjs.mdx index 706007cc42cb3..d4ef4386be109 100644 --- a/platform-includes/configuration/openfeature/javascript.nextjs.mdx +++ b/platform-includes/configuration/openfeature/javascript.nextjs.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/nextjs'; diff --git a/platform-includes/configuration/openfeature/javascript.nuxt.mdx b/platform-includes/configuration/openfeature/javascript.nuxt.mdx index 9efbb2b7f4138..adea8c92c6fc2 100644 --- a/platform-includes/configuration/openfeature/javascript.nuxt.mdx +++ b/platform-includes/configuration/openfeature/javascript.nuxt.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/nuxt'; diff --git a/platform-includes/configuration/openfeature/javascript.react.mdx b/platform-includes/configuration/openfeature/javascript.react.mdx index 42cdfea845433..0d94859a01e10 100644 --- a/platform-includes/configuration/openfeature/javascript.react.mdx +++ b/platform-includes/configuration/openfeature/javascript.react.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/react'; diff --git a/platform-includes/configuration/openfeature/javascript.remix.mdx b/platform-includes/configuration/openfeature/javascript.remix.mdx index 80a534026e332..a1a415818239f 100644 --- a/platform-includes/configuration/openfeature/javascript.remix.mdx +++ b/platform-includes/configuration/openfeature/javascript.remix.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/remix'; diff --git a/platform-includes/configuration/openfeature/javascript.solid.mdx b/platform-includes/configuration/openfeature/javascript.solid.mdx index 7b819925dc5fa..b387e991ecab1 100644 --- a/platform-includes/configuration/openfeature/javascript.solid.mdx +++ b/platform-includes/configuration/openfeature/javascript.solid.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/solid'; diff --git a/platform-includes/configuration/openfeature/javascript.solidstart.mdx b/platform-includes/configuration/openfeature/javascript.solidstart.mdx index c3344dbaad7b4..aec820c77cb86 100644 --- a/platform-includes/configuration/openfeature/javascript.solidstart.mdx +++ b/platform-includes/configuration/openfeature/javascript.solidstart.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/solidstart'; diff --git a/platform-includes/configuration/openfeature/javascript.svelte.mdx b/platform-includes/configuration/openfeature/javascript.svelte.mdx index af6dbd0fb4bba..7af396ca9303b 100644 --- a/platform-includes/configuration/openfeature/javascript.svelte.mdx +++ b/platform-includes/configuration/openfeature/javascript.svelte.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/svelte'; diff --git a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx index c366bcb8186ca..7b37f307bb310 100644 --- a/platform-includes/configuration/openfeature/javascript.sveltekit.mdx +++ b/platform-includes/configuration/openfeature/javascript.sveltekit.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/sveltekit'; diff --git a/platform-includes/configuration/openfeature/javascript.vue.mdx b/platform-includes/configuration/openfeature/javascript.vue.mdx index ce48165c39ea3..b3c117394d702 100644 --- a/platform-includes/configuration/openfeature/javascript.vue.mdx +++ b/platform-includes/configuration/openfeature/javascript.vue.mdx @@ -1,6 +1,4 @@ -Before using this integration, you need to install and instrument the OpenFeature SDK in your app. Learn more by reading OpenFeature's [SDK](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider](https://openfeature.dev/docs/reference/concepts/provider) docs. - -npm package: [`@openfeature/web-sdk`](https://www.npmjs.com/package/@openfeature/web-sdk) +Before using this integration, you need to install and instrument the [OpenFeature SDK](https://www.npmjs.com/package/@openfeature/web-sdk) in your app. Learn more by reading OpenFeature's [SDK docs](https://openfeature.dev/docs/reference/technologies/client/web/) and [provider docs](https://openfeature.dev/docs/reference/concepts/provider). ```javascript {tabTitle: JavaScript (Track All Evals)} import * as Sentry from '@sentry/vue';