Ignoring Exceptions
You can ignore exceptions by their type when initializing the SDK:
Copied
SentrySdk.Init(o => o.AddExceptionFilterForType<OperationCanceledException>());
It works in the whole inheritance chain.
The example above will also filter out TaskCanceledException
because it derives from OperationCanceledException
.
You can edit this page on GitHub.
- Package:
- nuget:Sentry.NLog
- Version:
- 2.1.8
- Repository:
- https://github.com/getsentry/sentry-dotnet