You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/dart/common/feature-flags/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,17 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
8
8
9
9
## Prerequisites
10
10
11
-
-[Sentry SDK](/platforms/dart/#configure) version `9.0.0` or higher is installed.
11
+
-[Sentry SDK](/platforms/dart/#configure) version `9.0.0`.
12
12
13
13
## Enable Evaluation Tracking
14
14
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:
Copy file name to clipboardExpand all lines: includes/dart-integrations/firebase-remote-config.mdx
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ platforms:
6
6
- flutter
7
7
---
8
8
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.
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`.
19
19
2. Firebase Remote Config is set up.
20
20
21
21
## Install
@@ -30,30 +30,41 @@ dependencies:
30
30
31
31
## Configure
32
32
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.
35
34
36
35
```dart
37
36
await SentryFlutter.init(
38
37
(options) {
39
38
options.addIntegration(
40
39
SentryFirebaseRemoteConfigIntegration(
41
40
firebaseRemoteConfig: firebaseRemoteConfig,
42
-
activateOnConfigUpdated: false,
43
41
),
44
42
);
45
43
},
46
44
);
47
45
```
48
46
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
+
49
59
## Verify & View
50
60
51
-
### 1. Update Firebase Remote Config value
61
+
### 1. Update Firebase Remote Config Value
52
62
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.
54
64
55
65
### 2. View the Recorded Feature Flag Evaluation on Sentry.io
56
66
57
67
To view the recorded feature flag evaluation, log into [sentry.io](https://sentry.io) and open your project.
58
68
59
69
The recorded feature flag evaluations will be visible in the event context.
0 commit comments