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

Improve the support for Flutter on Web #1661

Closed
marianhlavac opened this issue Sep 29, 2023 · 1 comment
Closed

Improve the support for Flutter on Web #1661

marianhlavac opened this issue Sep 29, 2023 · 1 comment

Comments

@marianhlavac
Copy link

marianhlavac commented Sep 29, 2023

Description

I'd like to follow up on the issues #417 and flutter/flutter#37875

It seems like from 2021 the support for Flutter on Web has not improved and the default experience using Sentry with Flutter on web is, let's be honest, pretty terrible. At least when compared with how well Sentry works for Flutter on iOS and Android.

Android/iOS Web
Screenshot 2023-09-29 at 12 58 12 Screenshot 2023-09-29 at 12 58 24

Namely the current issues:

  • The issue titles are missing completely, and contains only minified:xx
  • Files in stacktrace are prefixed with org-dartlang-sdk:///dart-sdk/lib/..., or contain absolute URLs of the machine where the app was built, or similar issues
  • The stacktraces are in an unpredictable order - see the screenshot, I have it as "newest first", yet main.dart is listed before about_screen.dart, and the rest is just a mess
  • Tags contain "Flutter" with question mark icon, and empty tag with "Version unknown"
  • The guide in documentation on how to set-up debug symbols for Flutter does not lead users to set-up the debug symbols upload successfully
    • Apparently, the sentry_dart_plugin does not create sourcemaps correctly. Unless you follow steps mentioned in this comment, the resulting stacktraces look like this.
    • In the known limitations, documentation is mentioning the Obfuscate caveat, which is irrelevant for web. The code is not obfuscated, it's minified. And Sentry is simply not using source maps correctly.

There is a lot of information floating around in multiple issues, some are claiming it's Sentry's fault, some it's Flutter's fault. It would be great to consolidate information into a single issue to know what's preventing having support for Flutter on Web in Sentry. If the issue is on the Flutter side, we should clearly state why, so we can track it in this issue and open a well-described issue on Flutter repository.

Is there a chance to bring attention of the Sentry team to work on making Sentry usable for Flutter Web developers? Thanks! 🙏

@kahest
Copy link
Member

kahest commented Oct 3, 2023

Hi @marianhlavac - thanks for your interest and the detailled writeup! We already have an issue for this topic: #897
Please feel free to upvote that and leave more information 🙏

@kahest kahest closed this as completed Oct 3, 2023
@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants