-
-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Labels
.NETPull requests that update .net codePull requests that update .net code
Description
Description
Relevant docs PR getsentry/sentry-docs#15086
The existing SessionEndStatus is to be extended by a new status Unhandled.
This splits the session update after error capture
sentry-dotnet/src/Sentry/SentryClient.cs
Lines 364 to 376 in c57c0f2
| var hasTerminalException = processedEvent.HasTerminalException(); | |
| if (hasTerminalException) | |
| { | |
| // Event contains a terminal exception -> end session as crashed | |
| _options.LogDebug("Ending session as Crashed, due to unhandled exception."); | |
| scope.SessionUpdate = _sessionManager.EndSession(SessionEndStatus.Crashed); | |
| } | |
| else if (processedEvent.HasException()) | |
| { | |
| // Event contains a non-terminal exception -> report error | |
| // (this might return null if the session has already reported errors before) | |
| scope.SessionUpdate = _sessionManager.ReportError(); | |
| } |
in two pieces:
- Exceptions that cause the application to
crash - Exceptions that do not cause a crash - i.e. through the
UnobservedTaskExceptionIntegrationor the Unity game engine
The Unhandled session end status is also terminal, meaning that the session updated as Unhandled is to be ended and not to receive further updates.
jamescrosswell
Metadata
Metadata
Assignees
Labels
.NETPull requests that update .net codePull requests that update .net code
Projects
Status
No status