sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Enable Slack Alerts to display Nested Exception instead of Topmost Exception

Open kpujjigit opened this issue 1 year ago • 1 comments

Problem Statement

The top exception is the generic one, which is basically an error log message, and the bottom one is the actual underlying exception that caused this alert to be fired:

Image

But the Slack alert only contains the topmost exception:

Image

Solution Brainstorm

Is there any way to include all the nested exception names & messages in the Slack alert?

Those error logs might sometimes hide multiple different exception types under them and cause new issues to be missed, therefore mistaken for more occurrences of older errors.

Product Area

Settings - Integrations

kpujjigit avatar Aug 27 '24 00:08 kpujjigit

Auto-routing to @getsentry/product-owners-settings-integrations for triage ⏲️

getsantry[bot] avatar Aug 27 '24 00:08 getsantry[bot]

Is there any way to include all the nested exception names & messages in the Slack alert?

It's been challenging to find the balance of providing details without being overwhelming in a Slack message. I'll keep this open to see if folks want more details. I think the likely long-term outcome is a way for user to configure it but it is not high leverage work atm.

leedongwei avatar Sep 05 '24 16:09 leedongwei

Just commenting here as a folk who wants more details: We run background tasks with a monitoring thread watching over them. This thread wraps any error the tasks raise in a generic exception to raise in the main thread. We only see the generic error in Slack, which is of limited use.

tomasfarias avatar Mar 19 '25 12:03 tomasfarias

Thanks for adding more context @tomasfarias.

sentaur-athena avatar Mar 21 '25 22:03 sentaur-athena