From 1457bacbbaaec22d254703c46b9efce3911efd97 Mon Sep 17 00:00:00 2001 From: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> Date: Sun, 21 Feb 2021 05:04:49 +0300 Subject: Sets Sentry SDK Environment Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com> --- backend/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/__init__.py b/backend/__init__.py index a3704a0..e629e82 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -7,14 +7,16 @@ from starlette.middleware.cors import CORSMiddleware from backend import constants from backend.authentication import JWTAuthenticationBackend -from backend.route_manager import create_route_map from backend.middleware import DatabaseMiddleware, ProtectedDocsMiddleware +from backend.route_manager import create_route_map from backend.validation import api +SENTRY_RELEASE = f"forms-backend@{constants.GIT_SHA}" sentry_sdk.init( dsn=constants.FORMS_BACKEND_DSN, send_default_pii=True, - release=f"forms-backend@{constants.GIT_SHA}" + release=SENTRY_RELEASE, + environment=SENTRY_RELEASE ) middleware = [ -- cgit v1.2.3