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
Integrations: Ariadne - handled
tag is always False
#2904
Comments
Hey @bmarkovicvega, thanks for writing in. Looks like in the Ariadne integration we report all error events as unhandled, but this also seems to be a pattern in other similar integrations. From your perspective as someone who uses the integration, what would you consider to be an unhandled Ariadne error? Would you prefer all Ariadne errors raised by Sentry to be marked as handled? |
Hi @sentrivana thanks for answering. What I would expect, from my perspective, is that unhandled error would be the error raised by the code I've added, but for errors handled by Giving an example and making a parallel with the REST endpoint: if we do |
Thanks @bmarkovicvega, that makes sense to me. For web frameworks we usually don't report client (4xx) errors at all since those should be reported by the client side, so it'd make sense to do something analogous for our GraphQL integrations as well. What's at the moment not clear to me is how we can categorize the errors we see e.g. in Ariadne into client and server errors, this needs some investigation into what the different errors look like and how we can tell them apart. In the meantime though, if you find the errors not actionable, you can always define a custom |
I appreciate you have looked at the issue and discussed it @sentrivana. Thanks for your time and thoughts about it. Also, thank you for giving a suggestion how to solve it for now. |
You're very welcome. Thank you for your time and perspective as well, it's always valuable to know how folks use the SDK so that we can make it better. |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.42.0
Steps to Reproduce
TestResult
:note:
AriadneIntegration()
is added uponsentry_sdk.init()
Expected Result
Error is reported in sentry with flag -> handled: True
Actual Result
Error is reported in sentry with flag -> handled: False
Why the error is reported as not handled when it seems that it's handled by library and a proper message is received
Message received and reported:
The text was updated successfully, but these errors were encountered: