Skip to content

Commit

Permalink
Update FeatureFlag Configuration (#12564)
Browse files Browse the repository at this point in the history
* Update FeatureFlag Configuration

* Update javascript.angular.mdx

* Update javascript.astro.mdx

* Update javascript.ember.mdx

* Update javascript.gatsby.mdx

* Update javascript.mdx

* Update javascript.nuxt.mdx

* Update javascript.react.mdx

* Update javascript.remix.mdx

* Update javascript.solid.mdx

* Update javascript.solidstart.mdx

* Update javascript.svelte.mdx

* Update javascript.sveltekit.mdx

* Update javascript.vue.mdx
  • Loading branch information
drguthals authored Feb 4, 2025
1 parent 6e50a75 commit 0e114fb
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
3 changes: 1 addition & 2 deletions platform-includes/configuration/featureflags/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ Sentry.init({
integrations: [Sentry.featureFlagsIntegration()]
});

const flagsIntegration = Sentry.getClient()?
.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
const flagsIntegration = Sentry.getClient()?.getIntegrationByName<Sentry.FeatureFlagsIntegration>('FeatureFlags');
if (flagsIntegration) {
flagsIntegration.addFeatureFlag('test-flag', false);
} else {
Expand Down

0 comments on commit 0e114fb

Please sign in to comment.