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
Ignore Exception by type #1306
Comments
I've removed the tags cus we use them to filter issues specifically for that platform, if there's no Android or Java tag, then its for both |
OK I won't add the tags in such case going forward. One benefit of adding is that you can search "all Android issues" by clicking the tag but I don't think I've ever done that :) |
Both |
The problem with that is that it's open for interpretation what that method will do. Does it ignore that instance? Does it ignore by message? message+type? For that reason I went with ugly but descriptive JS SDK has |
I think @maciejwalkowiak point is about the |
The SDK needs a first class API to filter out exceptions by their type.
The way to filter out today is through
beforeSend
such as:This is a feature in the .NET SDK documented here for reference.
i.e:
SentrySdk.Init(o => o.AddExceptionFilterForType<OperationCanceledException>());
In hindsight maybe not the best name
AddExceptionFilterForType
, perhapsFilterException<TException>
would be a better candidate although keeping the name consistent is also a nice to have.This issue was originally raised here: #575
The text was updated successfully, but these errors were encountered: