diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-25 11:40:04 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-25 11:40:46 -0800 |
commit | 3c2ac30e23744e38aa84f3a673b4cc644bd76c37 (patch) | |
tree | a38b6a677c7dc70b77a29ed16731f5fffb5defa8 /python/fatcat_web | |
parent | 45464ab2a9ccc18b5440a531dc2e4fdf6508a342 (diff) | |
download | fatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.tar.gz fatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.zip |
update sentry SDK configuration
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/__init__.py | 6 | ||||
-rw-r--r-- | python/fatcat_web/web_config.py | 9 |
2 files changed, 5 insertions, 10 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py index 9877d98e..0725c2e2 100644 --- a/python/fatcat_web/__init__.py +++ b/python/fatcat_web/__init__.py @@ -45,7 +45,11 @@ login_manager.login_view = "/auth/login" oauth = OAuth(app) # Grabs sentry config from SENTRY_DSN environment variable -sentry_sdk.init(integrations=[FlaskIntegration()]) +sentry_sdk.init( + integrations=[FlaskIntegration()], + release=Config.GIT_RELEASE, + environment=Config.FATCAT_DOMAIN, +) conf = fatcat_openapi_client.Configuration() conf.host = Config.FATCAT_API_HOST diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py index fb3b55ab..904189d6 100644 --- a/python/fatcat_web/web_config.py +++ b/python/fatcat_web/web_config.py @@ -157,12 +157,3 @@ class Config(object): except Exception as e: print("WARNING: couldn't set sentry git release automatically: " + str(e)) GIT_RELEASE = None - - SENTRY_CONFIG = { - #'include_paths': ['fatcat_web', 'fatcat_openapi_client', 'fatcat_tools'], - "enable-threads": True, # for uWSGI - "release": GIT_RELEASE, - "tags": { - "fatcat_domain": FATCAT_DOMAIN, - }, - } |