You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TaskScheduler.UnobservedTaskException += (sender, e) =>
{
// Report the inner exception, to get the stack trace
SentrySdk.CaptureException(e.Exception.InnerException);
};
... then I get a stack trace in Sentry. Could the built-in UnobservedTaskException do this, or something else clever to report the stack trace? Otherwise it's really difficult to debug these issues.
The text was updated successfully, but these errors were encountered:
This appears to be a regression, caused by #1922 which fixed #1917. Basically, we had assumed that the aggregate exception was always going to be the source of the stack trace, but in this case the inner exception already has it.
Package
Sentry.AspNetCore
.NET Flavor
.NET
.NET Version
6.0.11
OS
Windows
SDK Version
3.24.0
Self-Hosted Sentry Version
No response
Steps to Reproduce
Expected Result
Issue in Sentry should have a useful stack trace to the cause of the error
Actual Result
Issue in Sentry doesn't have a stack trace.
If I turn off Sentry's handling, e.g.:
... and add my own code like this:
... then I get a stack trace in Sentry. Could the built-in UnobservedTaskException do this, or something else clever to report the stack trace? Otherwise it's really difficult to debug these issues.
The text was updated successfully, but these errors were encountered: