summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-12 16:03:40 +0000
committerErik Johnston <erik@matrix.org>2019-02-12 16:03:40 +0000
commit93f7d2df3e8bb44e4f9fb6c5ce3fc23a86c30c1a (patch)
tree17bf8f1e27db02166517e2015264e778c6950933 /synapse/app
parentRaise an appropriate error message if sentry_sdk missing (diff)
downloadsynapse-93f7d2df3e8bb44e4f9fb6c5ce3fc23a86c30c1a.tar.xz
Comments
Diffstat (limited to 'synapse/app')
-rw-r--r--synapse/app/_base.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py

index d681ff5245..482f0e22ea 100644 --- a/synapse/app/_base.py +++ b/synapse/app/_base.py
@@ -279,6 +279,12 @@ def start(hs, listeners=None): def setup_sentry_io(hs): + """Enable sentry.io integration, if enabled in configuration + + Args: + hs (synapse.server.HomeServer) + """ + if not hs.config.sentry_enabled: return @@ -287,6 +293,8 @@ def setup_sentry_io(hs): dsn=hs.config.sentry_dsn, release=get_version_string(synapse), ) + + # We set some default tags that give some context to this instance with sentry_sdk.configure_scope() as scope: scope.set_tag("matrix_server_name", hs.config.server_name)