diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2ccea193..525a9fc5 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,5 @@ [0.3.3] -- feat: sentry integration enabled +- feat: sentry integration enabled with glitchtip - fix: reindex on update shout - packages upgrade, isort diff --git a/services/sentry.py b/services/sentry.py index 52b7568b..8a064b25 100644 --- a/services/sentry.py +++ b/services/sentry.py @@ -3,14 +3,14 @@ from sentry_sdk.integrations.ariadne import AriadneIntegration from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration from sentry_sdk.integrations.starlette import StarletteIntegration -from settings import SENTRY_DSN +from settings import GLITCHTIP_DSN def start_sentry(): # sentry monitoring try: sentry_sdk.init( - SENTRY_DSN, + GLITCHTIP_DSN, # Set traces_sample_rate to 1.0 to capture 100% # of transactions for performance monitoring. traces_sample_rate=1.0, diff --git a/settings.py b/settings.py index d44a83b5..b1c7d8d9 100644 --- a/settings.py +++ b/settings.py @@ -10,7 +10,7 @@ DB_URL = ( REDIS_URL = environ.get('REDIS_URL') or 'redis://127.0.0.1' API_BASE = environ.get('API_BASE') or '' AUTH_URL = environ.get('AUTH_URL') or '' -SENTRY_DSN = environ.get('SENTRY_DSN') +GLITCHTIP_DSN = environ.get('GLITCHTIP_DSN') DEV_SERVER_PID_FILE_NAME = 'dev-server.pid' MODE = 'development' if 'dev' in sys.argv else 'production'