Skip to content

Commit c89ec77

Browse files
committed
Move python generic doc from integrations to index page section
1 parent cfe959e commit c89ec77

File tree

4 files changed

+24
-55
lines changed

4 files changed

+24
-55
lines changed

docs/organization/integrations/feature-flag/generic/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To set up evaluation tracking, visit the [explore page](/product/explore/feature
1414

1515
To set up generic evaluation tracking, visit one of our supported languages' pages:
1616
* [JavaScript](/platforms/javascript/configuration/integrations/generic/)
17-
* [Python](/platforms/python/integrations/feature-flags/generic/)
17+
* [Python](/platforms/python/feature-flags/#generic-api)
1818

1919
## Change Tracking
2020

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
3131
## Enable Evaluation Tracking
3232

3333
Evaluation tracking requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
34-
- [OpenFeature](/platforms/javascript/configuration/integrations/openfeature/)
35-
- [LaunchDarkly](/platforms/javascript/configuration/integrations/launchdarkly/)
34+
3635
- [Generic](/platforms/javascript/configuration/integrations/generic/)
36+
- [LaunchDarkly](/platforms/javascript/configuration/integrations/launchdarkly/)
37+
- [OpenFeature](/platforms/javascript/configuration/integrations/openfeature/)
3738

3839
<PlatformContent includePath="feature-flags/enable-change-tracking" />

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

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

1313
## Enable Evaluation Tracking
1414

15-
Evaluation tracking requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
15+
Evaluation tracking typically requires enabling an SDK integration. Integrations are provider specific. Documentation for supported providers is listed below.
1616

17-
- [OpenFeature](/platforms/python/integrations/feature-flags/openfeature/)
17+
- [Generic (API)](/platforms/python/feature-flags/#generic-api)
1818
- [LaunchDarkly](/platforms/python/integrations/feature-flags/launchdarkly/)
19+
- [OpenFeature](/platforms/python/integrations/feature-flags/openfeature/)
1920
- [Unleash](/platforms/python/integrations/feature-flags/unleash/)
20-
- [Generic](/platforms/python/integrations/feature-flags/generic/)
21+
22+
### Generic API
23+
The generic API allows you to manually track feature flag evaluations. These
24+
evaluations are held in memory, and in the event an error occurs, sent to
25+
Sentry for review and analysis. Specifically, the generic integration enables
26+
users to integrate with proprietary (or otherwise unsupported) feature flagging
27+
solutions. **At the moment, we only support boolean flag evaluations.**
28+
29+
```python
30+
from sentry_sdk.integrations.feature_flags import add_feature_flag
31+
32+
add_feature_flag('test-flag', False) # Records an evaluation and its result.
33+
34+
sentry_sdk.capture_exception(Exception("Something went wrong!"))
35+
```
36+
37+
Go to your Sentry project and confirm that your error event has recorded the feature flag "test-flag" and its value "false".
2138

2239
<PlatformContent includePath="feature-flags/enable-change-tracking" />

docs/platforms/python/integrations/feature-flags/generic.mdx

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)