-
Notifications
You must be signed in to change notification settings - Fork 6
GraphQL errors: // we couldn't format it nicely #7
Comments
Thanks for the detailed report. It's always appreciated to have such reports. What would you like to have as the error message in Sentry? |
Yup! Happy to contribute a PR. I wanted to check with you on if there is something you were expecting with the current behavior before changing things up. I think I lean towards having the |
So far it seems like a case I haven't yet run into.
One Sentry event can have multiple exceptions, so multiple GraphQL errors are actually possible from the technical side. Every GraphQL error corresponds to one Sentry exception, and all of those exceptions are sent in one event. If you want, you can also give input on the following issues in the Sentry repo which are about improved GraphQL support in Sentry: |
@ueman I took a deeper look today at my code and as you might have already guessed this was caused by not having a We could think about what an exception might look like if it's missing the |
Since Sentry now properly supports GraphQL, I'll close this issue as it is no longer relevant because the way issues are reported will change. |
@ueman thanks for this! It's exactly what I needed for our Sentry setup.
I've noticed that my GraphQL
errors
are getting reported to Sentry as<unlabeled event>
sDigging in a bit it seems like
errors.toSentryExceptions(request, response)
is failing to returnexceptions
so we hit the// we couldn't format it nicely
block.I'm testing with a fairly simple
error
just to verify everything is setup correctly.Here's a screenshot from the debugger. the
exceptions
will be empty here so we end up in theelse
blockThe text was updated successfully, but these errors were encountered: