🌐⚠️ graphene-django-sentry
-------
*Capture Sentry exceptions in Graphene views*
When using `Graphene Django`_, you sometimes want to raise exceptions and capture them in the API.
However, Graphene Django eats the raised exceptions and you won't see it in Sentry! 😭
This package thinly wraps the normal GraphQLView with a handler that deals with Sentry errors properly.
So the results:
1. Sentry will show the true exceptions.
2. Graphene will continue to work like normal.
Works with:
* Python 3.6+
* Django 2.1+
* graphene-django 2.2+
.. image:: https://img.shields.io/pypi/v/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/pyversions/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/l/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/status/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://circleci.com/gh/phalt/graphene_django_sentry/tree/master.svg?style=svg
:target: https://circleci.com/gh/phalt/graphene_django_sentry/tree/master
Installing the project is easy:
.. code-block:: bash
pip install graphene-django-sentry
Full blown example:
.. code-block:: python
# urls.py
from .schema import schema
from graphene_django_sentry.views import SentryGraphQLView
urlpatterns = [
url(
r'^graphql',
csrf_exempt(SentryGraphQLView.as_view(schema=schema)),
name='graphql',
),
]
📖 What can I do?
--------
- Capture Sentry exceptions properly when they are `raise`-d in Graphene views.
🏗 Status
----------
graphene-django-sentry is currently stable and suitable for use.
🎥 Credits
-----------
This package was created with Cookiecutter_.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _Graphene Django: https://github.com/graphql-python/graphene-django
-------
*Capture Sentry exceptions in Graphene views*
When using `Graphene Django`_, you sometimes want to raise exceptions and capture them in the API.
However, Graphene Django eats the raised exceptions and you won't see it in Sentry! 😭
This package thinly wraps the normal GraphQLView with a handler that deals with Sentry errors properly.
So the results:
1. Sentry will show the true exceptions.
2. Graphene will continue to work like normal.
Works with:
* Python 3.6+
* Django 2.1+
* graphene-django 2.2+
.. image:: https://img.shields.io/pypi/v/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/pyversions/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/l/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://img.shields.io/pypi/status/graphene_django_sentry.svg
:target: https://pypi.org/project/graphene_django_sentry/
.. image:: https://circleci.com/gh/phalt/graphene_django_sentry/tree/master.svg?style=svg
:target: https://circleci.com/gh/phalt/graphene_django_sentry/tree/master
Installing the project is easy:
.. code-block:: bash
pip install graphene-django-sentry
Full blown example:
.. code-block:: python
# urls.py
from .schema import schema
from graphene_django_sentry.views import SentryGraphQLView
urlpatterns = [
url(
r'^graphql',
csrf_exempt(SentryGraphQLView.as_view(schema=schema)),
name='graphql',
),
]
📖 What can I do?
--------
- Capture Sentry exceptions properly when they are `raise`-d in Graphene views.
🏗 Status
----------
graphene-django-sentry is currently stable and suitable for use.
🎥 Credits
-----------
This package was created with Cookiecutter_.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _Graphene Django: https://github.com/graphql-python/graphene-django
Release files for graphene-django-sentry 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| graphene-django-sentry-0.2.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| graphene_django_sentry-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / graphene-django-sentry-0.2.0.tar.gz
| Download URL | graphene-django-sentry-0.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61c3958710073ba126726abfb663e78646aabd86a188156e0ecdfcdee4c134ef
|
|
BLAKE2b-256 checksum How to use checksums |
922b03e26e6f401c07163416f409252fdc3d324ef17b511154124a7811f2bef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|
Release files / graphene_django_sentry-0.2.0-py2.py3-none-any.whl
| Download URL | graphene_django_sentry-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a57bafebf0c09067965abbbd094be3c4249fa8f4a9c97f3b37a44669bfd9f307
|
|
BLAKE2b-256 checksum How to use checksums |
5ab3f4d8058947bdee17f0ccf553318fe8a3c9695adbf8a3ecec6af2e2946fb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
|