-
Notifications
You must be signed in to change notification settings - Fork 516
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
Caught 3rd party exception triggers event #3897
Comments
@SHxKM it would be helpful if you could provide more specific information on which third party package you are using, but what you are observing does seem like it most likely is the expected behavior. As you said, your third party package (which based on your screenshot, seems to be Celery or something which internally calls Celery) is internally raising the try:
1 / 0
except ZeroDivisionError as e:
# This exception will be marked "handled: true" in the Sentry UI
sentry_sdk.capture_exception(e) Since this is most likely expected behavior based on the information you have provided so far, I am going to go ahead and close the issue. If anything is unclear, please reach out, or if I have misunderstood what the problem is, and you think my explanation should not apply, please reopen the issue or open a new issue describing how I misunderstood. |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.14.0
Steps to Reproduce
I'm not sure Sentry is behaving the way it should in the following scenario. I'll try to be succinct but detailed enough so no details are missing.
Summary: I think Sentry is raising an event where it shouldn't be.
Details:
Let's say I have
main()
func in my app, which callssecondary()
func in my app, which callsthird_party()
func in a 3rd-party package.third_party()
can throw an exception of typeThirdPartyException
.secondary()
does not catchThirdPartyException
, butmain()
, which callssecondary()
, does catchThirdPartyException
and logs with levelinfo
the details of the exception. I'm 100% sure the exception thrown bythird_party()
is being caught bymain()
.Expected Result
No event is raised by Sentry, since the exception was caught and handled eventually.
Actual Result
Sentry is raising an event, claiming the event is
Unhandled
as well. Screenshot:The text was updated successfully, but these errors were encountered: