-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Change the behavior of excluded_exceptions option #822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
I was thinking if it makes sense to do the check of the option in the |
I considered that approach, but it's less clear: it would have to inspect the IMHO the |
I suppose we should not care if the exception is originating the event or is just additional data of the payload as long as the option works coherently
Setting the |
Hmm this is a tricky one, but I would say If I were to call |
Wouldn't the same reasoning apply to the |
Yes. Yes it would. But since its called excluded_exceptions this makes more sense IMO. Best case would be to only exclude “auto” captured exceptions. But we have no way of identifying them currently so IMO this would be the best approach. |
I'm not really happy with some options (this one being one of them) that apply only in certain situations since they make the behavior less predictable or not predictable at all. However, LGTM, let's see what happens and if someone else complains we will act accordingly 👍 |
Probably a good thing to actually add this option to the documentation and be explicit about how it works there. Than at least it’s documented. |
Yup, if someone can take care of opening a PR in the getsentry/sentry-docs repository it would be great! |
Done in getsentry/sentry-docs#1019. To be fair, the docs already described the behavior that this PR implements, I only added the |
Hi, A new release with this fix is expected soon? 😄 Thanks |
Could there be a regression introduced with the v2.2.x minor? getsentry/sentry-symfony#216 (comment) |
Nope, that's related to the Symfony bundle. Also, this MR is present and released with d407aa1 since 2.1.1. |
This PR stems/fixes #820 and the related getsentry/sentry-symfony#216.
The current behavior of the
excluded_exceptions
option is broken, since it just excludes exceptions from theexception
key in the event payload, which results in broken or empty exception chains reported.Instead, the correct behavior should be ignoring the automatic capturing of a set of exceptions, like excluding 404 exceptions from frameworks.