Skip to content

Exceptions captured through Extensions.Logging marked as handled = true #3394

@bitsandfoxes

Description

@bitsandfoxes

An easy repro is Sentry.Samples.AspNetCore.Blazor.Wasm:

private static void Thrower() => throw null;

The sample throws null but the error gets captured through Sentry.Extensions.Logging which calls _hub.CaptureException which ends up in here getting marked as handled
else if (exception.StackTrace != null)
{
// The exception was thrown, but it was caught by the user, not an integration.
// Thus, we can mark it as handled.
mechanism.Handled = true;
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions