diff options
author | 2020-08-22 02:05:24 +0200 | |
---|---|---|
committer | 2020-08-22 02:05:24 +0200 | |
commit | 212a06f400bfce95281e4c8d11baf6cb09e70861 (patch) | |
tree | c542e9aefd3e379030b78532ffa8f66e884cbda6 /pydis_site/settings.py | |
parent | Move git SHA initialization to __init__.py. (diff) |
Set the sentry_sdk.init release to git_sha.
This is the first step in implementing releases for Sentry.
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r-- | pydis_site/settings.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index afa097be..ff2942f0 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -20,6 +20,7 @@ import sentry_sdk from django.contrib.messages import constants as messages from sentry_sdk.integrations.django import DjangoIntegration +from pydis_site import GIT_SHA if typing.TYPE_CHECKING: from django.contrib.auth.models import User @@ -33,7 +34,8 @@ env = environ.Env( sentry_sdk.init( dsn=env('SITE_SENTRY_DSN'), integrations=[DjangoIntegration()], - send_default_pii=True + send_default_pii=True, + release=f"pydis-site@{GIT_SHA}" ) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) |