-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events for blocking calls #1671
Comments
Relates to: getsentry/sentry-dotnet#2709 |
This could be a performance issue generated by the backend, without the need to send an event when one of those APIs is called. We already have |
How could a backend know if a File I/O call in a flutter app has been made? or am I understanding it wrong |
@buenaflor the idea is that we create a perf issue for sync file I/O, but only for Flutter apps. Since we already have the |
Got it, sounds reasonable, I would also opt for that route since we already have the mechanism in place to make it happen - unless there are other concerns |
In .NET the situation we want to track is when an
So that's any async method (not just I/O) that happens on a async flow that's blocked on. Any In other words: On a program: |
Let's understand if it makes sense for Flutter, too. |
We can check if we run on the main or the background isolate, so we can add this info in the |
Problem Statement
Similar to https://twitter.com/brungarc/status/1711484812702171309 it should be possible in Dart to detect blocking file IO calls.
There's also a lint rule (https://dart.dev/tools/linter-rules/avoid_slow_async_io) to enforce sync io but that can't be detected for 3rd party code. Depending on the lint rule, it could make sense to send events based on sync or async file io. In mobile apps, async io is probably the better choice, while on CLIs or backend code sync io could be better.
Solution Brainstorm
Whenever a sync file API is called, an event should be sent to Sentry. This can be done with the existing file plugin by adding extra events when the sync APIs are called.
Are you willing to submit a PR?
None
The text was updated successfully, but these errors were encountered: