diff --git a/CHANGELOG.md b/CHANGELOG.md index e1da39b4b1..9e8f190369 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +### Fixes + +- Disable sff & frame delay detection on web, linux and windows ([#2182](https://github.com/getsentry/sentry-dart/pull/2182)) + - Display refresh rate is locked at 60 for these platforms which can lead to inaccurate metrics + ### Improvements - Capture meaningful stack traces when unhandled errors have empty or missing stack traces ([#2152](https://github.com/getsentry/sentry-dart/pull/2152)) diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 4b0deb8541..42d3cd1ea2 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -136,7 +136,12 @@ mixin SentryFlutter { options.addEventProcessor(PlatformExceptionEventProcessor()); - options.addPerformanceCollector(SpanFrameMetricsCollector(options)); + // Disabled for web, linux and windows until we can reliably get the display refresh rate + if (options.platformChecker.platform.isAndroid || + options.platformChecker.platform.isIOS || + options.platformChecker.platform.isMacOS) { + options.addPerformanceCollector(SpanFrameMetricsCollector(options)); + } _setSdk(options); }