Skip to content
Discussion options

You must be logged in to vote

@Syed-RI

TLDR;

From what I can tell, you never want Exceptions that get logged via ILogger to be turned into events that get to Sentry. The easiest way to do that is just to set options.MinimumEventLevel = LogLevel.None when initialising Sentry... if you do that, nothing you log via the ILogger interface will be captured as an Event in Sentry.

Long explanation

Mechanism.Handled is generally only set to false for exceptions that you don't catch and which the Sentry SDK catches automatically (e.g. via the AppDomainUnhandledExceptionIntegration).

Exceptions that are captured from your own code, via SentrySdk.CaptureException or ILogger (where the log level is higher than SentryLoggingOption.…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Syed-RI
Comment options

@jamescrosswell
Comment options

Answer selected by Syed-RI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants