diff --git a/flutter/lib/src/integrations/frames_tracking_integration.dart b/flutter/lib/src/integrations/frames_tracking_integration.dart index b5be70a519..97ff45a1a2 100644 --- a/flutter/lib/src/integrations/frames_tracking_integration.dart +++ b/flutter/lib/src/integrations/frames_tracking_integration.dart @@ -15,9 +15,12 @@ class FramesTrackingIntegration implements Integration { SentryWidgetsBindingMixin? _widgetsBinding; @override - Future call(Hub hub, SentryFlutterOptions options) async { + void call(Hub hub, SentryFlutterOptions options) { _options = options; + _initializeFramesTracking(options); + } + void _initializeFramesTracking(SentryFlutterOptions options) async { if (!options.enableFramesTracking) { return options.logger(SentryLevel.debug, '$FramesTrackingIntegration disabled: enableFramesTracking option is false'); diff --git a/flutter/lib/src/integrations/native_app_start_integration.dart b/flutter/lib/src/integrations/native_app_start_integration.dart index bf1e356283..a500c00647 100644 --- a/flutter/lib/src/integrations/native_app_start_integration.dart +++ b/flutter/lib/src/integrations/native_app_start_integration.dart @@ -32,7 +32,7 @@ class NativeAppStartIntegration extends Integration { bool _allowProcessing = true; @override - void call(Hub hub, SentryFlutterOptions options) async { + void call(Hub hub, SentryFlutterOptions options) { void timingsCallback(List timings) async { if (!_allowProcessing) { return;