This commit is contained in:
parent
2f4c8acaa2
commit
34c16c8cdf
|
@ -1,10 +1,16 @@
|
|||
import sentry_sdk
|
||||
import logging
|
||||
from sentry_sdk.integrations.ariadne import AriadneIntegration
|
||||
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from sentry_sdk.integrations.starlette import StarletteIntegration
|
||||
|
||||
from sentry_sdk.integrations.logging import LoggingIntegration
|
||||
from settings import GLITCHTIP_DSN
|
||||
|
||||
sentry_logging = LoggingIntegration(
|
||||
level=logging.DEBUG, # Capture info and above as breadcrumbs
|
||||
event_level=logging.ERROR # Send errors as events
|
||||
)
|
||||
|
||||
|
||||
def start_sentry():
|
||||
# sentry monitoring
|
||||
|
@ -23,6 +29,7 @@ def start_sentry():
|
|||
StarletteIntegration(),
|
||||
AriadneIntegration(),
|
||||
SqlalchemyIntegration(),
|
||||
sentry_logging
|
||||
],
|
||||
)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue
Block a user