Add GraphQL client integration (#2368) · gitcommit90/sentry-python@6908aad · GitHub
Skip to content

Commit 6908aad

Browse files
Add GraphQL client integration (getsentry#2368)
* Monkeypatch * Sending actual errors now * Fix mypy typing * Add GQL requirements to Tox * Add Tox dependencies * Fix mypy * More meaningful patched function name * some basic unit tests * Created GQL Tox env * Updated YAML for CI * Added importorskip for gql tests * More unit tests * Improved mocking for unit tests * Explain each test * added two integration tests for good measure * Skip loading gql tests in python below 3.7 * Fix module name * Actually should have fixed module name now * Install optional gql dependencies in tox * Fix error in Py 3.7 * Ignore capitalized variable * Added doc comment to pytest_ignore_collect * Check successful gql import * Switch to type comments * Made test loadable in Python 2 * Added version check * Make sure integration is there before doing sentry stuff * Removed breakpoint * Using EventProcessor * Fix typing * Change to version comment Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io> * Address code review * TYPE_CHECKING from sentry_sdk._types Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io> --------- Co-authored-by: Ivana Kellyerova <ivana.kellyerova@sentry.io>
1 parent 641822d commit 6908aad

4 files changed

Lines changed: 450 additions & 0 deletions

File tree

Lines changed: 83 additions & 0 deletions

sentry_sdk/integrations/gql.py

Lines changed: 142 additions & 0 deletions

0 commit comments

Comments
 (0)