Skip to content

Add Ariadne GraphQL error integration - #2387

Merged
sentrivana merged 22 commits into
masterfrom
ivana/ariadne-integration
Oct 2, 2023
Merged

sentrivana merged 22 commits into
masterfrom
ivana/ariadne-integration

Conversation

@sentrivana

@sentrivana sentrivana commented Sep 21, 2023 •

Copy link
Copy Markdown
Collaborator

Capture GraphQL errors when using Ariadne server side and add more context to them (request, response).

Example event in Sentry: https://sentry-sdks.sentry.io/issues/4510338932/events/220aadec5c604710b0041a14864e45b6/

One of three integrations for #2257, split from #2381

@sentrivana
sentrivana marked this pull request as ready for review September 21, 2023 14:11

@antonpirker antonpirker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicking, otherwise: really nice clean integration!

Comment thread sentry_sdk/integrations/ariadne.py Resolved
Comment thread sentry_sdk/integrations/ariadne.py Resolved
Comment thread sentry_sdk/integrations/ariadne.py Resolved
Comment thread sentry_sdk/integrations/ariadne.py Resolved
@sentrivana

sentrivana commented Sep 28, 2023 •

Copy link
Copy Markdown
Collaborator Author

@antonpirker Made two additional changes since your review:

  • added an ignore_logger to prevent the logging integration from capturing the error first: 25495d5 and removed it from the tests e197c39
  • changed attaching request.data back so that the ariadne integration rewrites whatever is set there by the web framework integrations: 2ceb9b1 As I was testing stuff for docs I noticed that the web framework integrations sometimes seem to attach a wrong request body. Not sure exactly why. Making the ariadne integration overwrite it ensures that it's the correct one.

@sentrivana
sentrivana enabled auto-merge (squash) October 2, 2023 13:13
@sentrivana
sentrivana merged commit 7c74ed3 into master Oct 2, 2023
@sentrivana
sentrivana deleted the ivana/ariadne-integration branch October 2, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants