sentry-dart
sentry-dart copied to clipboard
Debouncing of SentryWidgetsBindingObserver.didChangeMetrics.
Platform:
- [ ] Dart
- [x] Flutter Android or iOS
- [ ] Flutter Web
IDE:
- [ ] VSCode
- [ ] IntelliJ/AS
- [ ] XCode
- [ ] Other, which one?
The version of the SDK (See pubspec.lock): 5.0.0
SentryWidgetsBindingObserver.didChangeMetrics gets called way too often. As seen in this crash report it gets called way too much.
@ueman the linked issue does not have any breadcrumb with device.screen category, could you double-check, please?
I'd chose between bug or enhancement btw, it can't be both though, sounds like it does its job so maybe debouncing would be an enhancement to not make it too noisy
It is an older event of the same exception https://sentry.io/organizations/sentry-sdks/issues/2149575550/events/0fb9c693eea84858b8b0a6986a7e16e6/?project=5428562
indeed, thanks, let's debouce it and take the last then, what would be a reasonable timeout for deboucing? 1-3s?
Yeah, that time span seems reasonable
On Linux this also seems to be a problem even without resizing the window: https://sentry.io/share/issue/014e554f41e449298005bc120e1641da/