diff --git a/src/newsreader/conf/dev.py b/src/newsreader/conf/dev.py index 9372350..29be1b6 100644 --- a/src/newsreader/conf/dev.py +++ b/src/newsreader/conf/dev.py @@ -18,11 +18,11 @@ AXES_FAILURE_LIMIT = 50 AXES_COOLOFF_TIME = None try: - from .local import * # noqa - # Optionally use sentry integration from sentry_sdk import init as sentry_init + from .local import * # noqa + SENTRY_CONFIG.update({"release": VERSION}) sentry_init(**SENTRY_CONFIG) diff --git a/src/newsreader/conf/docker.py b/src/newsreader/conf/docker.py index 9b62961..c141636 100644 --- a/src/newsreader/conf/docker.py +++ b/src/newsreader/conf/docker.py @@ -45,11 +45,11 @@ AXES_COOLOFF_TIME = None CELERY_BROKER_URL = "amqp://guest:guest@rabbitmq:5672//" try: - from .local import * # noqa - # Optionally use sentry integration from sentry_sdk import init as sentry_init + from .local import * # noqa + SENTRY_CONFIG.update({"release": VERSION, "environment": ENVIRONMENT}) sentry_init(**SENTRY_CONFIG)