Skip to content

Commit a7e37b9

Browse files
aliu39bruno-garcia
andauthored
ref(flags): restructure generic api and integration docs (#12768)
* ref(flags): reword generic api and integration, fix generic api snippet * Extra line Co-authored-by: Bruno Garcia <[email protected]> * Revert generic snippet * extra line * Rm ` --------- Co-authored-by: Bruno Garcia <[email protected]>
1 parent 24a47b3 commit a7e37b9

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

docs/platforms/javascript/common/feature-flags/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,17 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
3030

3131
## Enable Evaluation Tracking
3232

33-
Evaluation tracking requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
33+
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.
3434

35-
- [Generic](/platforms/javascript/configuration/integrations/featureflags/)
3635
- [LaunchDarkly](/platforms/javascript/configuration/integrations/launchdarkly/)
3736
- [OpenFeature](/platforms/javascript/configuration/integrations/openfeature/)
3837
- [Statsig](/platforms/javascript/configuration/integrations/statsig/)
3938
- [Unleash](/platforms/javascript/configuration/integrations/unleash/)
4039

40+
### Generic Integration
41+
42+
The generic `featureFlagsIntegration` allows you to manually track feature flag evaluations. Read the [documentation](/platforms/javascript/configuration/integrations/featureflags/) to learn more.
43+
4144
## Enable Change Tracking
4245

4346
<PlatformContent includePath="feature-flags/change-tracking-list" />

docs/platforms/python/feature-flags/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
1212

1313
## Enable Evaluation Tracking
1414

15-
Evaluation tracking typically requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
15+
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.
1616

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

3029
```python
30+
import sentry_sdk
3131
from sentry_sdk.feature_flags import add_feature_flag
3232

3333
add_feature_flag('test-flag', False) # Records an evaluation and its result.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Change tracking requires registering a Sentry webhook with a feature flag provider. For set up instructions, visit the documentation for your provider:
2-
* [Generic](/organization/integrations/feature-flag/generic/#change-tracking)
32
* [LaunchDarkly](/organization/integrations/feature-flag/launchdarkly/#change-tracking)
43
* [Statsig](/organization/integrations/feature-flag/statsig/#change-tracking)
54
* [Unleash](/organization/integrations/feature-flag/unleash/#change-tracking)
5+
* [Generic](/organization/integrations/feature-flag/generic/#change-tracking)

0 commit comments

Comments
 (0)