Skip to content

New Session status type Unhandled #4632

@bitsandfoxes

Description

@bitsandfoxes

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

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:

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.

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net code

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions