diff options
author | 2021-02-21 05:04:49 +0300 | |
---|---|---|
committer | 2021-02-21 05:05:22 +0300 | |
commit | 1457bacbbaaec22d254703c46b9efce3911efd97 (patch) | |
tree | a73226a6b7145b189a6d06532d3078d2222aa996 /backend | |
parent | Bump sentry-sdk from 0.19.5 to 0.20.3 (diff) |
Sets Sentry SDK Environment
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend')
-rw-r--r-- | backend/__init__.py | 6 |
1 files 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 = [ |