-
-
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
Improve support for Flutter Web #897
Comments
This should not create duplicates when used together with the |
https://github.com/dart-lang/source_map_stack_trace/tree/master might be something to look at in case JS stack traces are not so user-friendly, we could do something similar on the Server, well, we already symbolicate it but not sure if this library does something different than us. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@blaugold can you provide a minimal reproducible example? (with build commands, upload source maps command, etc). |
This comment was marked as off-topic.
This comment was marked as off-topic.
@blaugold can you try using the https://github.com/getsentry/sentry-dart-plugin plugin instead of calling sentry-cli manually? |
Flutter web has this option in the build cmd:
If its set, we could use it as release/dist, instead of the pubspec file? |
Duplicate of this with some context/rationale: #1661 |
What's the status of this item so far? |
@alestiago hi, anything specific you are looking for in the list? |
Is there a solution yet? @buenaflor. I keep getting this instead of dart source codes. |
This ticket is 2 years old and it doesn't look promising in the thread. IMO it should be the top priority if you are to support Flutter web, I am surprised this takes so long. Right now we have around 50% of 'minified' issues and I am doubting my choice to use Sentry for our flutter product. At least include some warning in the documentation about this limitation! |
Hey, we totally understand the frustration and are sorry about the delay of this issue. What should work:
What doesn't work:
So (in theory) the stacktrace should not be minified in the issues. We'll take a look at that @denrase
You're right, thanks for pointing that out, we will add more visibility on current flutter web limitations to our docs |
@buenaflor Please just in case I am wrong. Could you give the steps required to get the "What should work:" to work? We are trying to use sentry on Crx(Flutter Web) to record exceptions, It does that but returns minified stacktraces. To solve this, we uploaded sourcemaps after making build (with the --sourcemaps in the build command) using the sentry_dart_plugin. It shows on sentry that sourcemaps were uploaded successfully but we still don't see dart code in exception stacktraces. After this exceptions show minified:kP (minified:a_P at times) instead of the exception types but the stacktraces are still not readable. Is there any work around to get dart code or are we missing any step? PS: We also tried to use sentry cli and manually upload the source code after injecting debug-ids but got similar results |
Is this expected to behave differently if the flutter web app is loaded as a chrome extension? Because with the same steps you outlined I am getting this with a lot of missing source issues @denrase @buenaflor |
I have same issue https://stackoverflow.com/questions/78290786/flutter-web-sentry-did-not-translate-correctly-issues/78291321#78291321 |
@EmmanuelAdeiza yes, it's expected to work differently when loaded as Chrome extension, and we didn't specifically add support for this - I added an item to the tasklist on top. |
tracePropagationTargets
buildId
support for Flutter Web dart-lang/sdk#53027Likely more improvements can be made.
The text was updated successfully, but these errors were encountered: