Skip to content

Commit 7403efd

Browse files
committed
feedback
1 parent ac58e31 commit 7403efd

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
88

99
## Prerequisites
1010

11-
- [Sentry SDK](/platforms/dart/#configure) version `9.0.0` or higher is installed.
11+
- [Sentry SDK](/platforms/dart/#configure) version `9.0.0`.
1212

1313
## Enable Evaluation Tracking
1414

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.
15+
If you use a third-party SDK to evaluate feature flags, you can enable Sentry to track those evaluations. Integrations are provider specific, and documentation for supported SDKs is listed below:
1616

1717
- [Firebase Remote Config](/platforms/dart/configuration/integrations/firebase-remote-config/)
1818

1919
### Manual Usage
2020

21-
Call `Sentry.addFeatureFlag` to track feature flag evaluations.
21+
Call `Sentry.addFeatureFlag` to track feature flag evaluations:
2222

2323
```dart
2424
Sentry.addFeatureFlag("feature_flag_a", true);

includes/dart-integrations/firebase-remote-config.mdx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ platforms:
66
- flutter
77
---
88

9-
The `sentry_firebase_remote_config` integration provides [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) support for Sentry thus providing insight into feature flag evaluations.
9+
The `sentry_firebase_remote_config` integration provides [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) support for Sentry, providing insight into feature flag evaluations.
1010

1111
## Behavior
1212

@@ -15,7 +15,7 @@ The `sentry_firebase_remote_config` integration provides [Firebase Remote Config
1515

1616
## Prerequisites
1717

18-
1. [Sentry SDK](/platforms/dart/#configure) version `9.0.0` or higher is installed.
18+
1. [Sentry SDK](/platforms/dart/#configure) version `9.0.0`.
1919
2. Firebase Remote Config is set up.
2020

2121
## Install
@@ -30,30 +30,41 @@ dependencies:
3030
3131
## Configure
3232
33-
Add the `SentryFirebaseRemoteConfig` integration to the Sentry SDK initialization. The integration will automatically call `await remoteConfig.activate();` when the config is updated.
34-
If you don't want this behavior, you can set `activateOnConfigUpdated` to `false`.
33+
Add the `SentryFirebaseRemoteConfig` integration to the Sentry SDK initialization.
3534

3635
```dart
3736
await SentryFlutter.init(
3837
(options) {
3938
options.addIntegration(
4039
SentryFirebaseRemoteConfigIntegration(
4140
firebaseRemoteConfig: firebaseRemoteConfig,
42-
activateOnConfigUpdated: false,
4341
),
4442
);
4543
},
4644
);
4745
```
4846

47+
### Remote Config Update
48+
49+
The integration will automatically call `await remoteConfig.activate();` when the config is updated.
50+
If you don't want this behavior, you can set `activateOnConfigUpdated` to `false`.
51+
52+
```dart
53+
SentryFirebaseRemoteConfigIntegration(
54+
firebaseRemoteConfig: firebaseRemoteConfig,
55+
activateOnConfigUpdated: false,
56+
),
57+
```
58+
4959
## Verify & View
5060

51-
### 1. Update Firebase Remote Config value
61+
### 1. Update Firebase Remote Config Value
5262

53-
Update a boolean [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) value to true. Keep in mind that values will be evaluated as bool if there string values are `true`, `false`, `1`, or `0`. So keep in mind that numerical values of `1` or `0` will be evaluated as `true` or `false` boolean values.
63+
Update a boolean [Firebase Remote Config](https://firebase.google.com/docs/remote-config/get-started?platform=flutter) value to true. Keep in mind that values will be evaluated as bool if their string values are `true`, `false`, `1`, or `0`. So numerical values of `1` or `0` will be evaluated as `true` or `false` boolean values respectively.
5464

5565
### 2. View the Recorded Feature Flag Evaluation on Sentry.io
5666

5767
To view the recorded feature flag evaluation, log into [sentry.io](https://sentry.io) and open your project.
5868

5969
The recorded feature flag evaluations will be visible in the event context.
70+

0 commit comments

Comments
 (0)