Skip to content

Commit

Permalink
dont remove scope observer
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Jan 8, 2025
1 parent 9601a40 commit 53e71cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import 'integrations/integrations.dart';
import 'integrations/native_app_start_handler.dart';
import 'integrations/screenshot_integration.dart';
import 'native/factory.dart';
import 'native/native_scope_observer.dart';
import 'native/sentry_native_binding.dart';
import 'profiling.dart';
import 'renderer/renderer.dart';
Expand Down Expand Up @@ -129,6 +130,9 @@ mixin SentryFlutter {
options.transport = FileSystemTransport(_native!, options);
}
}
if (!options.platformChecker.isWeb) {
options.addScopeObserver(NativeScopeObserver(_native!));
}
}

options.addEventProcessor(FlutterEnricherEventProcessor(options));
Expand Down

0 comments on commit 53e71cd

Please sign in to comment.