-
Notifications
You must be signed in to change notification settings - Fork 164
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
Custom error handeling #138
Comments
I'm a bit unclear on what it is that you're looking for here. Are you trying to get GraphQL errors sent to sentry? |
I am. |
Arguably your best bet here is to add a custom phase. Absinthe works by having a big list of modules, and then passing a graphql document through functions on each of those modules. Each module does some part of the execution process. The idea here is that you can just add an additional module to the end of the list that will do whatever sentry stuff you want. A phase can be added via the
So in
Hopefully that gets you off to the right start. |
@benwilson512 Seems like I can solve this problem that way. Thanks for the explanation. |
Hi!
I'm experiencing issues while using
Absinthe.Plug
in conjunction with Sentry (an error logging service). I can't get Sentry to report an error (neither through a Plug nor through:error_logger
).I've managed to find a similar issue on their issue tracker and after some digging figured out that this line causes the same problem as the one outlined in the issue.
My question is, is there a way to implement custom error handling with this library? Or o way to get the described integration to work?
The text was updated successfully, but these errors were encountered: