How to filter out errors which are handled by try catch

As per Sentry docs even if the user handles the exception it will be logged in sentry with handled flag as yes.

But how to avoid the logging of handled exceptions in sentry ??

I am using sentry-sdk (0.14.1) and below integrations:

hey @thiyaguby you could use the beforeSend callback.

@marandaneto Thanks for the suggestion.

How do I get the handled flag inside that beforeSend method… ?? I tried that but couldn’t find that flag in the arguments…

cc @untitaker