From 7f39851d33daa5f0cfb03e321455f2fc5b76a4ac Mon Sep 17 00:00:00 2001 From: GIancarlo Buenaflor Date: Thu, 18 Jul 2024 17:11:31 +0200 Subject: [PATCH] disable --- flutter/lib/src/sentry_flutter.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flutter/lib/src/sentry_flutter.dart b/flutter/lib/src/sentry_flutter.dart index 4b0deb8541..6a96c567dc 100644 --- a/flutter/lib/src/sentry_flutter.dart +++ b/flutter/lib/src/sentry_flutter.dart @@ -136,7 +136,11 @@ mixin SentryFlutter { options.addEventProcessor(PlatformExceptionEventProcessor()); - options.addPerformanceCollector(SpanFrameMetricsCollector(options)); + if (options.platformChecker.platform.isAndroid || + options.platformChecker.platform.isIOS || + options.platformChecker.platform.isMacOS) { + options.addPerformanceCollector(SpanFrameMetricsCollector(options)); + } _setSdk(options); }