Set Up Feature Flags for Dart
With Feature Flags, Sentry tracks feature flag evaluations in your application using the Sentry Dart SDK, keeps an audit log of feature flag changes, and reports any suspicious updates that may have caused an error.
- Sentry SDK version
9.0.0.
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:
Call Sentry.addFeatureFlag to track feature flag evaluations:
Copied
await Sentry.addFeatureFlag("feature_flag_a", true);
await Sentry.addFeatureFlag("feature_flag_a", true);
Calling this function multiple times with the same flag name overrides the previous value. Evaluations are stored on the current scope and added to the active span. No separate FeatureFlagsIntegration is required.
Was this helpful?
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").