Skip to content

Commit 1792c7d

Browse files
committed
samller fixes
1 parent 1a5e762 commit 1792c7d

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: With Feature Flags, Sentry tracks feature flag evaluations in your
88

99
## Prerequisites
1010

11-
- You have the <PlatformLink to="/">Sentry SDK version 9 installed</PlatformLink>.
11+
- You have the <PlatformLink to="/">Sentry SDK</PlatformLink> version 9 installed.
1212

1313
## Enable Evaluation Tracking
1414

includes/dart-integrations/firebase-remote-confix.mdx renamed to includes/dart-integrations/firebase-remote-config.mdx

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ title: Firebase Remote Config
33
description: "Learn more about the Sentry Firebase Remote Config integration for the Dart SDK."
44
sidebar_order: 6
55
platforms:
6-
- dart
76
- flutter
87
---
98

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.
1110

1211
## Behavior
1312

1413
- 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 <PlatformLink to="/">Sentry SDK</PlatformLink> version 9.0.0 or higher.
1615

1716
## Prerequisites
1817

@@ -25,24 +24,29 @@ To use the `SentryFirebaseRemoteConfig` integration, add the `sentry_firebase_re
2524

2625
```yml {filename:pubspec.yaml}
2726
dependencies:
28-
sentry: ^{{@inject packages.version('sentry.dart', '9.0.0') }}
29-
sentry_firebase_remote_config: ^{{@inject packages.version('sentry.dart.firebase_remote_config', '9.0.0') }}
27+
sentry: ^9.0.0
28+
sentry_firebase_remote_config: ^9.0.0
3029
```
3130
3231
## Configure
3332
3433
Add the `SentryFirebaseRemoteConfig` integration to the Sentry SDK initialization.
3534

3635
```dart
37-
import 'package:sentry/sentry.dart';
36+
import 'package:sentry_flutter/sentry_flutter.dart';
3837
import 'package:sentry_firebase_remote_config/sentry_firebase_remote_config.dart';
3938
40-
await Sentry.init(
39+
... // Initialize Firebase Remote Config
40+
41+
await SentryFlutter.init(
4142
(options) {
4243
options.dsn = 'https://[email protected]/example';
43-
options.firebaseRemoteConfigIntegration = SentryFirebaseRemoteConfig(
44-
firebaseRemoteConfig: firebaseRemoteConfig,
45-
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+
),
4650
);
4751
},
4852
);
@@ -52,8 +56,10 @@ await Sentry.init(
5256

5357
### 1. Update Firebase Remote Config value
5458

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.
5660

5761
### 2. View the Recorded Feature Flag Evaluation on Sentry.io
5862

5963
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

Comments
 (0)