Skip to content

Commit 4fcfdd2

Browse files
committed
add review feedback
1 parent 8e5ac64 commit 4fcfdd2

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If you use a third-party SDK to evaluate feature flags, you can enable a Sentry
1818

1919
### Manual Usage
2020

21-
Per default, the Sentry SDK adds the `FeatureFlagsIntegration`, which allows you to manually 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: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `sentry_firebase_remote_config` integration provides [Firebase Remote Config
1010

1111
## Behavior
1212

13-
- Adding the `SentryFirebaseRemoteConfig` integration will automatically track feature flag evaluations for boolean Firebase Remote Config values.
13+
- Adding the `SentryFirebaseRemoteConfig` integration will automatically track feature flag evaluations.
1414
- Only boolean values are supported.
1515

1616
## Prerequisites
@@ -30,21 +30,15 @@ dependencies:
3030
3131
## Configure
3232
33-
Add the `SentryFirebaseRemoteConfig` integration to the Sentry SDK initialization.
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`.
3435

3536
```dart
36-
import 'package:sentry_flutter/sentry_flutter.dart';
37-
import 'package:sentry_firebase_remote_config/sentry_firebase_remote_config.dart';
38-
39-
... // Initialize Firebase Remote Config
40-
4137
await SentryFlutter.init(
4238
(options) {
43-
options.dsn = 'https://[email protected]/example';
4439
options.addIntegration(
4540
SentryFirebaseRemoteConfigIntegration(
4641
firebaseRemoteConfig: firebaseRemoteConfig,
47-
// Don't call `await remoteConfig.activate();` when firebase config is updated. Per default this is true.
4842
activateOnConfigUpdated: false,
4943
),
5044
);

0 commit comments

Comments
 (0)