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: includes/dart-integrations/firebase-remote-config.mdx
+17-11Lines changed: 17 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,15 @@ title: Firebase Remote Config
3
3
description: "Learn more about the Sentry Firebase Remote Config integration for the Dart SDK."
4
4
sidebar_order: 6
5
5
platforms:
6
-
- dart
7
6
- flutter
8
7
---
9
8
10
-
The `sentry_firebase_remote_config` integration provides [Firebase Remote Config](https://firebase.google.com/docs/remote-config) 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 thus providing insight into feature flag evaluations.
11
10
12
11
## Behavior
13
12
14
13
- Adding the `SentryFirebaseRemoteConfig` integration will automatically track feature flag evaluations for boolean Firebase Remote Config values.
15
-
- The integration is available in Sentry SDK version 9.0.0 or higher.
14
+
- The integration is available in <PlatformLinkto="/">Sentry SDK</PlatformLink> version 9.0.0 or higher.
16
15
17
16
## Prerequisites
18
17
@@ -25,24 +24,29 @@ To use the `SentryFirebaseRemoteConfig` integration, add the `sentry_firebase_re
activateOnUpdate: false, // Per default, the remote config is activated on update. You can opt out by setting this to false.
44
+
options.addIntegration(
45
+
SentryFirebaseRemoteConfigIntegration(
46
+
firebaseRemoteConfig: firebaseRemoteConfig,
47
+
// Don't call `await remoteConfig.activate();` when firebase config is updated. Per default this is true.
48
+
activateOnConfigUpdated: false,
49
+
),
46
50
);
47
51
},
48
52
);
@@ -52,8 +56,10 @@ await Sentry.init(
52
56
53
57
### 1. Update Firebase Remote Config value
54
58
55
-
Update a boolean Firebase Remote Config 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.
59
+
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.
56
60
57
61
### 2. View the Recorded Feature Flag Evaluation on Sentry.io
58
62
59
63
To view the recorded feature flag evaluation, log into [sentry.io](https://sentry.io) and open your project.
64
+
65
+
The recorded feature flag evaluations will be visible in the event context.
0 commit comments