From 15a01fbf4e46bb5785d9ffa38b8a3375fc529575 Mon Sep 17 00:00:00 2001 From: Giorgos Logiotatidis Date: Tue, 11 Apr 2017 14:07:56 +0300 Subject: [PATCH] Add extra tags to sentry report. Extra tags: - server_full_name - environment - site This those extra tags we will able to merge all Sentry apps into one for easier managements on multiple clusters. --- snippets/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/settings.py b/snippets/settings.py index fc8d6fee9..5e6c08ee1 100644 --- a/snippets/settings.py +++ b/snippets/settings.py @@ -299,6 +299,11 @@ def get_default_gateway_linux(): RAVEN_CONFIG = { 'dsn': config('SENTRY_DSN', None), 'release': config('GIT_SHA', None), + 'tags': { + 'server_full_name': '.'.join(x for x in [HOSTNAME, DEIS_APP, DEIS_DOMAIN] if x), + 'environment': config('SENTRY_ENVIRONMENT', ''), + 'site': '.'.join(x for x in [DEIS_APP, DEIS_DOMAIN] if x), + } } ALTERNATE_METRICS_URL = config('ALTERNATE_METRICS_URL', default=None)