diff --git a/docs/organization/integrations/feature-flag/generic/index.mdx b/docs/organization/integrations/feature-flag/generic/index.mdx index 916d1764efca0..1151c4902aa9a 100644 --- a/docs/organization/integrations/feature-flag/generic/index.mdx +++ b/docs/organization/integrations/feature-flag/generic/index.mdx @@ -1,6 +1,6 @@ --- title: Generic -sidebar_order: 3 +sidebar_order: 1 description: Learn about Sentry's generic feature-flag integrations. --- @@ -24,7 +24,7 @@ For the generic case, you need to write a webhook that conforms to our API. You ### Set Up Change Tracking -Enabling Change Tracking is a four step process. To get started visit the [feature-flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below. +Enabling Change Tracking is a four step process. To get started, visit the [feature flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below. 1. **Click the "Add New Provider" button.** - One webhook secret can be registered per provider type. diff --git a/docs/organization/integrations/feature-flag/index.mdx b/docs/organization/integrations/feature-flag/index.mdx index 231f7596a4609..84f2a642da776 100644 --- a/docs/organization/integrations/feature-flag/index.mdx +++ b/docs/organization/integrations/feature-flag/index.mdx @@ -4,7 +4,8 @@ sidebar_order: 90 description: "Learn more about Sentry's feature flag integrations." --- -- [LaunchDarkly](/organization/integrations/feature-flag/launchdarkly/) - [Generic](/organization/integrations/feature-flag/generic/) +- [LaunchDarkly](/organization/integrations/feature-flag/launchdarkly/) +- [Statsig](/organization/integrations/feature-flag/statsig/) - [Split](/organization/integrations/feature-flag/split/) - [Unleash](/organization/integrations/feature-flag/unleash/) diff --git a/docs/organization/integrations/feature-flag/launchdarkly/index.mdx b/docs/organization/integrations/feature-flag/launchdarkly/index.mdx index d714d215e2a54..60a411d3e0d36 100644 --- a/docs/organization/integrations/feature-flag/launchdarkly/index.mdx +++ b/docs/organization/integrations/feature-flag/launchdarkly/index.mdx @@ -1,6 +1,6 @@ --- title: LaunchDarkly -sidebar_order: 1 +sidebar_order: 2 description: Learn about Sentry's LaunchDarkly integrations. --- diff --git a/docs/organization/integrations/feature-flag/statsig/img/statsig-event-filters.png b/docs/organization/integrations/feature-flag/statsig/img/statsig-event-filters.png new file mode 100644 index 0000000000000..43de7de74eaeb Binary files /dev/null and b/docs/organization/integrations/feature-flag/statsig/img/statsig-event-filters.png differ diff --git a/docs/organization/integrations/feature-flag/statsig/img/statsig-webhook-modal.png b/docs/organization/integrations/feature-flag/statsig/img/statsig-webhook-modal.png new file mode 100644 index 0000000000000..6ea39c415a4ec Binary files /dev/null and b/docs/organization/integrations/feature-flag/statsig/img/statsig-webhook-modal.png differ diff --git a/docs/organization/integrations/feature-flag/statsig/index.mdx b/docs/organization/integrations/feature-flag/statsig/index.mdx new file mode 100644 index 0000000000000..ba47d92aa8ee8 --- /dev/null +++ b/docs/organization/integrations/feature-flag/statsig/index.mdx @@ -0,0 +1,46 @@ +--- +title: Statsig +sidebar_order: 3 +description: Learn about Sentry's Statsig integrations. +--- + +## Evaluation Tracking + +Sentry can track flag evaluations as they happen within your application. Flag evaluations will appear in the "Feature Flag" section of the Issue Details page as a table, with "suspect" flag predictions highlighted in yellow. Learn more about how to interact with feature flag insights within the Sentry UI by reading the [Issue Details page documentation](/product/issues/issue-details/#feature-flags). + +### Set Up Evaluation Tracking + +To set up evaluation tracking, visit one of our supported languages pages: +* [JavaScript](/platforms/javascript/configuration/integrations/statsig/) +* [Python](/platforms/python/integrations/statsig/) + +## Change Tracking + +Sentry can track changes to feature flag definitions and report suspicious feature flag edits. + +### Set Up Change Tracking + +Enabling Change Tracking is a three-step process. To get started, visit the [feature flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below. + +1. **Click the "Add New Provider" button.** + - One webhook secret can be registered per provider type. + - Select Statsig in the dropdown that says "Select a provider". +2. **Register the webhook URL**. + ![Statsig Webhook Modal](./img/statsig-webhook-modal.png) + - Go to your Statsig console and navigate to the `/integrations/` page, which can be found by clicking settings on the left-hand sidebar navigation, then "Integrations" under the "Product Configuration" heading. + - Select the Webhook option, which will open a modal. + - Copy the webhook URL provided in Sentry settings and paste it into the modal's "Webhook URL" input box. +3. **Set the Signing Secret**. + - Copy the Webhook Signing Secret from below the URL, and paste it into the input box next to "Secret" in Sentry settings. + - Keep this string safe and note it down somewhere in case you need it in the future. Statsig will still show you the secret when reopening the webhook modal. Keep in mind that if you click "Generate New Key", you will need to add the secret to Sentry settings again. +4. **Optional: Event Filters**. + - We currently only support change tracking events from this webhook. To avoid sending unnecessary events, click "Event Filtering" on the top right of the Statsig modal and check off "Configuration Changes". Click save to confirm. + - If you would like to only track changes from your Statsig development, staging, and/or production environments, check off the corresponding environment(s) under "Configuration Changes" > "Environments" in Event Filtering. Click save to confirm. + - Similar to Environments, you may also filter by Configuration Changes by "Tags", "Target Apps", or "Teams". + ![Statsig Event Filters](./img/statsig-event-filters.png) + +5. **Save your webhook**. + - Save the secret by clicking "Add Provider" in Sentry settings. + - Save the webhook by clicking "Confirm" in Statsig. + +Once saved, Sentry will now accept and authenticate all inbound hooks to your organization's feature flag webhook endpoint. diff --git a/docs/organization/integrations/feature-flag/unleash/index.mdx b/docs/organization/integrations/feature-flag/unleash/index.mdx index 6418618b65838..905821b9132cd 100644 --- a/docs/organization/integrations/feature-flag/unleash/index.mdx +++ b/docs/organization/integrations/feature-flag/unleash/index.mdx @@ -1,6 +1,6 @@ --- title: Unleash -sidebar_order: 2 +sidebar_order: 5 description: Learn about Sentry's Unleash integrations. --- @@ -20,7 +20,7 @@ Sentry can track changes to feature flag definitions and report suspicious featu ### Set Up Change Tracking -Enabling Change Tracking is a three-step process. To get started visit the [feature-flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below. +Enabling Change Tracking is a three-step process. To get started, visit the [feature flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below. 1. **Click the "Add New Provider" button.** - One webhook secret can be registered per provider type. diff --git a/platform-includes/feature-flags/change-tracking-list/_default.mdx b/platform-includes/feature-flags/change-tracking-list/_default.mdx index 0b098f488a9c7..bbeadaefc0653 100644 --- a/platform-includes/feature-flags/change-tracking-list/_default.mdx +++ b/platform-includes/feature-flags/change-tracking-list/_default.mdx @@ -1,4 +1,5 @@ Change tracking requires registering a Sentry webhook with a feature flag provider. For set up instructions, visit the documentation for your provider: * [Generic](/organization/integrations/feature-flag/generic/#change-tracking) * [LaunchDarkly](/organization/integrations/feature-flag/launchdarkly/#change-tracking) +* [Statsig](/organization/integrations/feature-flag/statsig/#change-tracking) * [Unleash](/organization/integrations/feature-flag/unleash/#change-tracking)