Closed denrase closed 1 week ago
fyi, the real example could lead up to 75 api calls due to heavy retries (for example with bad internet connection)
Looking at the code, we do drop the envelopes due to back pressure, but this is probably happening too late, as we only do this before calling transport
.
We could either move this to an earlier place in the processing queue, or introduce additional measured, like the mentioned debounce for the screenshot widget. The latter is probably a good addition anyway.
@buenaflor Added a PR for widget debounce. Do you think this will resolve this issue or should we introduce additional measures?
We could either move this to an earlier place in the processing queue
I think this might also be a good solution so we don't trigger all the event processors and thus decrease overhead, right?
Added a PR for widget debounce
👍 maybe might be good to check out with the flutter profiler to see if there is any other event processor or similar that is creating overhead when calling captureException in a tight loop
Description
A user reported that calling sentry capture methods in fast succession is leading to issues, especially with screenshot integration.
Investigate if calling the SDK mehods in tight loops can be improved. One idea was to introduce a debounce for screenshots.