You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Sentry;using(SentrySdk.Init(o =>{ o.Dsn ="https://eb18e953812b41c3aeb042e666fd3b5c@o447951.ingest.sentry.io/5428537"; o.Debug =true; o.AddExceptionFilterForType<MyException>();})){thrownew AggregateException(new MyException());}publicclassMyException:Exception{}
Expected Result
No exception should be sent, because it's been configured to be filtered out.
Actual Result
The exception is sent anyway, because it's an inner exception of another exception.
We already unwind inner exceptions and discard aggregates, but we appear to be filtering beforehand. We probably should still filter before, because we'd want to discard any child exceptions of a filtered exception also. We just need to walk the entire tree during the filtering process.
I haven't checked, but this probably applies to exception processors as well.
The text was updated successfully, but these errors were encountered:
SDK Version
3.21.0
Steps to Reproduce
Expected Result
No exception should be sent, because it's been configured to be filtered out.
Actual Result
The exception is sent anyway, because it's an inner exception of another exception.
We already unwind inner exceptions and discard aggregates, but we appear to be filtering beforehand. We probably should still filter before, because we'd want to discard any child exceptions of a filtered exception also. We just need to walk the entire tree during the filtering process.
I haven't checked, but this probably applies to exception processors as well.
The text was updated successfully, but these errors were encountered: