Skip to content

Commit

Permalink
ref(flags): restructure generic api and integration docs (#12768)
Browse files Browse the repository at this point in the history
* ref(flags): reword generic api and integration, fix generic api snippet

* Extra line

Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>

* Revert generic snippet

* extra line

* Rm `

---------

Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
  • Loading branch information
aliu39 and bruno-garcia authored Feb 19, 2025
1 parent 24a47b3 commit a7e37b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions docs/platforms/javascript/common/feature-flags/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your

## Enable Evaluation Tracking

Evaluation tracking requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
If you use a third-party SDK to evaluate feature flags, you can enable a Sentry SDK integration to track those evaluations. Integrations are provider specific. Documentation for supported SDKs is listed below.

- [Generic](/platforms/javascript/configuration/integrations/featureflags/)
- [LaunchDarkly](/platforms/javascript/configuration/integrations/launchdarkly/)
- [OpenFeature](/platforms/javascript/configuration/integrations/openfeature/)
- [Statsig](/platforms/javascript/configuration/integrations/statsig/)
- [Unleash](/platforms/javascript/configuration/integrations/unleash/)

### Generic Integration

The generic `featureFlagsIntegration` allows you to manually track feature flag evaluations. Read the [documentation](/platforms/javascript/configuration/integrations/featureflags/) to learn more.

## Enable Change Tracking

<PlatformContent includePath="feature-flags/change-tracking-list" />
4 changes: 2 additions & 2 deletions docs/platforms/python/feature-flags/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your

## Enable Evaluation Tracking

Evaluation tracking typically requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
If you use a third-party SDK to evaluate feature flags, you can enable a Sentry SDK integration to track those evaluations. Integrations are provider specific. Documentation for supported SDKs is listed below.

- [Generic (API)](/platforms/python/feature-flags/#generic-api)
- [LaunchDarkly](/platforms/python/integrations/launchdarkly/)
- [OpenFeature](/platforms/python/integrations/openfeature/)
- [Statsig](/platforms/python/integrations/statsig/)
Expand All @@ -28,6 +27,7 @@ users to integrate with proprietary (or otherwise unsupported) feature flagging
solutions. **At the moment, we only support boolean flag evaluations.**

```python
import sentry_sdk
from sentry_sdk.feature_flags import add_feature_flag

add_feature_flag('test-flag', False) # Records an evaluation and its result.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +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)
* [Generic](/organization/integrations/feature-flag/generic/#change-tracking)

0 comments on commit a7e37b9

Please sign in to comment.