diff options
| author | 2020-12-20 16:04:47 +0200 | |
|---|---|---|
| committer | 2020-12-20 16:04:47 +0200 | |
| commit | e97f79aa0c93f44c0826b4cb909dd560dbdcc3ab (patch) | |
| tree | d3246bee8f8fe793eb8da6d5454e7d174e60e1de | |
| parent | Create workflow for Sentry release creation (diff) | |
Add Sentry release to SDK initialization
| -rw-r--r-- | snekbox/__init__.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/snekbox/__init__.py b/snekbox/__init__.py index d9b007c..42628d4 100644 --- a/snekbox/__init__.py +++ b/snekbox/__init__.py @@ -8,11 +8,13 @@ from gunicorn.config import Config  from sentry_sdk.integrations.falcon import FalconIntegration  DEBUG = os.environ.get("DEBUG", False) +GIT_SHA = os.environ.get("GIT_SHA", "development")  sentry_sdk.init(      dsn=os.environ.get("SNEKBOX_SENTRY_DSN", ""),      integrations=[FalconIntegration()], -    send_default_pii=True +    send_default_pii=True, +    release=f"snekbox@{GIT_SHA}"  ) | 
