Using a different thread's call stack for grouping #946
-
For my Windows app I have a "watchdog" thread that checks whether the UI thread is remaining responsive. If it times out, the watchdog thread calls RaiseException to close the application and submit an error to Sentry. I can see my UI thread's stack in Sentry and diagnose issues with this setup, but all crashes of this sort end up grouped together because they have the watchdog's thread stack. I'd like to use the UI thread's stack for grouping. I looked at Stack Trace Rules and Fingerprint Rules and don't see an answer for working with other threads there. I could attach some kind of metadata before crashing and work up grouping rules myself, but I was wondering if there's a more straightforward answer I'm missing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @mgooding, this touches on a more significant topic with different use cases but for which Sentry currently doesn't provide a suitable solution:
The right place to modify these properties in the client SDK would be the Relevant properties in the event are:
Be aware that the following policy (from the threads interface docs above) will be applied (during minidump event processing):
This means you will end up with a JSON event payload containing an Ideally, for a use-case like yours, I would like to be able to set |
Beta Was this translation helpful? Give feedback.
Hi @mgooding, this touches on a more significant topic with different use cases but for which Sentry currently doesn't provide a suitable solution: