Skip to content
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

Improving error handling support for web and some improvements for sentry handler #32

Merged
merged 15 commits into from
May 20, 2024

Conversation

mikeesouth
Copy link

@mikeesouth mikeesouth commented May 20, 2024

  • PlatformDispatcher.instance.onError is no longer called for web (as it's not supported)
  • runZoneGuarded is now only used for web as PlatformDispatcher is not supported on web
  • Sentry handler has these improvements:
    • Cleanup of screenshot files
    • applicationVersion is now sent as lowercase and with an @ character between app name and version number
    • Configurable parameters for logger and server names
    • Sends the error message instead of a static string to the sentry report message parameter

I know that it isn't ideal that a PR contains multiple fixes but I don't really have time to split it up into smaller chunks. I've tested that these features works as intended but I'm more than happy for more testers and/or feedback to these changes.

Until these features are merged, I will continue to use our forked repo.

Edit: I didn't update the pubspec.yaml version because I'm not sure if and when this will be merged. But the pubspec.yaml version needs to be bumped if this gets merged (of course).

Michael Söderman and others added 15 commits January 27, 2024 10:47
Adding runZonedGuarded for web platform to catch asynchronous excepti…
…eptions are caught for both web and native platforms
Fixing timing of init widgets binding to catch async errors in web
Fixing sentry release syntax by using an @ sign between appname and version
…gurable-server-name

Feature/improved message and configurable server name
* Fix directive formatting

* Bump version and add changelog

* Support custom file names during runtime

Fixes ThexXTURBOXx#21

* Allow file supplier to use info from report

Fixes ThexXTURBOXx#22

* Update CMakeLists

* Allow sentry versions 8.x

* Bump version and add changelog

* Update version and fix some typos

* Undo version upgrade and fix a few more things

* Fix linter rules for Dart 3.3.0

* Bump version and add changelog

* Update example to newest standards

* Fix FileHandler not sending reports

* Clean up FileHandler

* Bump version and add changelog

* Update package_info_plus to v6

* Allow device_info_plus 10.0.0 to be used

* Bump version and add changelog

* Update dependencies

* Bump version and add changelog

* Allow package_info_plus versions 8.x

* Bump version and add changelog

* Remove direct dependency on platform interface

* Migrate Slack screenshots to new API calls

* Remove superfluous log

* Better example structure

* Update flutter_lints

* Migrate screenshots to XFiles

* Workaround for error catching on Web

---------

Co-authored-by: Nico Mexis <[email protected]>
Co-authored-by: Martin Clauss <[email protected]>
Co-authored-by: Bartlomiej Tartanus <[email protected]>
Co-authored-by: Michael Söderman <[email protected]>
@ThexXTURBOXx
Copy link
Owner

Firstly, thank you very much for your PR!
However, the first two features should already be implemented in the current master branch as I have also noticed the same behaviour a short time ago.
I will take a short look at the detailed changes within the next few hours and see what I will merge (or even if I want to merge everything) :)

@ThexXTURBOXx ThexXTURBOXx merged commit 63dfb68 into ThexXTURBOXx:master May 20, 2024
2 checks passed
ThexXTURBOXx added a commit that referenced this pull request May 20, 2024
@ThexXTURBOXx
Copy link
Owner

I have merged your changes with a few changes. Again, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants