|
| 1 | +--- |
| 2 | +title: Flagsmith |
| 3 | +sidebar_order: 1 |
| 4 | +description: Learn about Sentry's Flagsmith integrations. |
| 5 | +--- |
| 6 | + |
| 7 | +## Evaluation Tracking |
| 8 | + |
| 9 | +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). |
| 10 | + |
| 11 | +### Set Up Evaluation Tracking |
| 12 | + |
| 13 | +Flagsmith recommends using an OpenFeature SDK combined with a [Flagsmith provider](https://openfeature.dev/ecosystem?instant_search%5Bquery%5D=flagsmith&instant_search%5BrefinementList%5D%5Btype%5D%5B0%5D=Provider) to evaluate feature flags. To track these evaluations, visit one of our supported languages pages for OpenFeature: |
| 14 | +* [JavaScript](/platforms/javascript/configuration/integrations/openfeature/) |
| 15 | +* [Python](/platforms/python/integrations/openfeature/) |
| 16 | + |
| 17 | +Visit the [Flagsmith documentation](https://docs.flagsmith.com/integrations/apm/sentry#evaluation-tracking-setup) for specific instructions on how to set up the OpenFeature SDK with the Flagsmith provider. |
| 18 | + |
| 19 | +## Change Tracking |
| 20 | + |
| 21 | +Sentry can track changes to feature flag definitions and report suspicious feature flag edits. |
| 22 | + |
| 23 | +### Set Up Change Tracking |
| 24 | + |
| 25 | +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/change-tracking/) in a new tab. Then follow the steps listed below. |
| 26 | + |
| 27 | +1. **Click the "Add New Provider" button.** |
| 28 | + - One webhook secret can be registered per provider type. |
| 29 | + - Select Generic in the dropdown that says "Select a provider". |
| 30 | +2. **Register the webhook URL**. |
| 31 | +  |
| 32 | + - Go to your Flagsmith project dashboard and navigate to the `/project/:projectid/integrations` page, which can be found by clicking "Integrations" on the top navigation bar. |
| 33 | + - Find the Sentry option, and click "Add Integration", which will open a modal. |
| 34 | + - Select the Environment from which flag change events will trigger. |
| 35 | + - Copy the webhook URL from Sentry settings and paste it into "Webhook URL" in the Flagsmith "Sentry Integration" modal. |
| 36 | +3. **Set the Signing Secret**. |
| 37 | + - Still in the Flagsmith "Sentry Integration" modal, type in any string between 10 and 60 characters to use as your authorization token ("secret"). |
| 38 | + - Copy the authorization token from the previous step and paste it into the input box next to "Secret" in Sentry settings. |
| 39 | + |
| 40 | +Once saved, Sentry will now accept and authenticate all inbound hooks to your organization's feature flag webhook endpoint. |
0 commit comments