-
-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ignoreTransactions and ignoreErrors #2306
Comments
For Examples: SentrySdk.Init(options =>
{
options.AddExceptionFilterForType<FileNotFoundException>();
}); Or: SentrySdk.Init(options =>
{
options.AddExceptionFilter(new MyExceptionFilter());
});
public class MyExceptionFilter : IExceptionFilter
{
public bool Filter(Exception ex) => ex.Message.Contains("something");
} We could add another
|
We don't have any |
The SDK functionally supports these via
|
It feels like in the docs, |
Good callout! Thanks! |
This could be a dumb question, but does that exception filter affect Transactions in any way, or just Errors? |
Just error events: sentry-dotnet/src/Sentry/SentryClient.cs Lines 270 to 277 in 37eb4a5
|
Background:
To further simplfiy ignoring certain events from being sent to sentry, it is also suggested to provide
ignoreTransactions
andignoreErrors
More info here develop docs updated: https://develop.sentry.dev/sdk/features/#event-sampling
The text was updated successfully, but these errors were encountered: