-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
JVM/Android issue title not derived from the most deeply nested error #64074
Labels
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-issues for triage ⏲️ |
Thanks for reporting, seems like something we should support better. I've added it to our backlog |
7 tasks
7 tasks
Has this been fixed after getsentry/sentry-java#3212 got merged? |
Closing due to inactivity. Let us know if the patch @armenzg linked is insufficient. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
Try/Catch on the JVM allows you to catch an exception and throw a different one, listing the originally thrown exception as a
cause
:In this example, if
potentiallyDangerousCode
throws anIOException
, then Sentry will make the title of the issueAppException
. This is not useful because because in this imaginary example any number ofIOException
s could have occurred inpotentiallyDangerousCode
! It should be easy to use the issue title as a way to distinguish these issues. Therefore Sentry should do what Firebase does and use the most deeply nestedcause
for deriving the title.This is particularly problematic on Android, because
potentiallyDangerousCode
becomes your entire app! Source. So in Android apps, unless your exception thrown is aRuntimeException
, then Sentry will always title the issue asRuntimeException — com.android.internal.os.RuntimeInit$MethodAndArgsCaller in run at line 562
.I listed this as a bug, but it could also be a feature request? Feel free to change it if it's intended.
Expected Result
Title of the issue should be derived from the most deeply nested exception cause, not from the topmost one.
Actual Result
Title of the issue is derived from the topmost exception.
Product Area
Issues
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: