Skip to content

New Session status type Unhandled #4632

Closed

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.

Activity

  1. linear commented on Oct 14, 2025

    @linear
  2. self-assigned this
    on Oct 14, 2025
  3. changed the title [-]New Sesstion status type `Unhandled`[/-] [+]New Session status type `Unhandled`[/+] on Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

.NETPull requests that update .net codeFeatureNew feature or request

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions