ciscorn / starlette-graphene3

An ASGI app for using Graphene v3 with Starlette / FastAPI
MIT License
101 stars 14 forks source link

Catching exceptions with sentry #13

Closed pjotterplotter closed 3 years ago

pjotterplotter commented 3 years ago

Currently all exceptions are catched and returned in a formatted form. This is fine for invalid formatted queries, but for programming errors in my code i'd like these to be reraised, so i can catch them with Sentry for example. I could not find a way to achieve this currently, any ideas?

ciscorn commented 3 years ago

Hi @pjotterplotter I just added exception reporting with the logging module.

Your Sentry setup will automatically captures logging outputs by default. https://docs.sentry.io/platforms/python/guides/logging/