sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Better visualization of suppressed exceptions in Sentry UI

Open adinauer opened this issue 1 year ago • 2 comments

Problem Statement

Currently suppressed exceptions show up like any other chained exception in Sentry UI. While we are planning to mark them as suppressed, it will still be hard to grasp how all the reported exceptions are related.

We already have a UI component in Sentry that displays exception groups but that is tied to processing code in Sentry which causes grouping to break for certain Java exceptions with suppressed exceptions and no cause.

Solution Brainstorm

We could have a more generic UI component in Sentry that visualizes chained and suppressed exceptions in a short overview with links to the full exception with stack trace, similar to what exists for exception groups.

If we don't want to have something like this for all chained exceptions, we can maybe simply check if there's more than one exception that has the same parent exception ID and only display the component for that.

adinauer avatar Jan 22 '25 05:01 adinauer

Hi, any idea when this feature will ne supported? Would love to see it actually. I have an use case where I aggregate multiple exceptions in to a single exception as suppressed exceptions in a base exception. I still need the stacktrace of the suppressed exception, but currently it is not possible to see the suppressed exceptions at all..

My use case is that I do json validation with hibernate validator aka bean validation. The json files are big and therefore I am streaming in chunks and validating in smaller portions to prevent out of memory exception. I get exceptions if there are validation issues, but I don't want to stop with the first exception, so I continue validating till the whole file is processed. After that I collect all the exceptions. I dont want 100+ seperate sentry alerts for all of the issues for a single request, so I aggregate them, bundle them in a single exception by putting it in the suppressed exceptions field.

Hakky54 avatar Jun 03 '25 07:06 Hakky54

hi @Hakky54, thanks for the feedback! We'll take your case into account. However, we currently have no real idea on when this will be supported. We'll let you know!

stefanosiano avatar Jun 04 '25 11:06 stefanosiano