summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-12 13:55:58 +0000
committerErik Johnston <erik@matrix.org>2019-02-12 13:55:58 +0000
commitef2228c890b44963c65f086eb1246c27ef43d256 (patch)
tree18388dce006970da20598af6a8b02b69839e5703 /synapse/config
parentFixup changelog entries (diff)
downloadsynapse-ef2228c890b44963c65f086eb1246c27ef43d256.tar.xz
Basic sentry integration
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/metrics.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/config/metrics.py b/synapse/config/metrics.py
index 718c43ae03..f312010a9b 100644
--- a/synapse/config/metrics.py
+++ b/synapse/config/metrics.py
@@ -23,12 +23,20 @@ class MetricsConfig(Config):
         self.metrics_port = config.get("metrics_port")
         self.metrics_bind_host = config.get("metrics_bind_host", "127.0.0.1")
 
+        self.sentry_enabled = "sentry" in config
+        if self.sentry_enabled:
+            self.sentry_dsn = config["sentry"]["dsn"]
+
     def default_config(self, report_stats=None, **kwargs):
         res = """\
         ## Metrics ###
 
         # Enable collection and rendering of performance metrics
         enable_metrics: False
+
+        # Enable sentry.io integration
+        #sentry:
+        #    dsn: "..."
         """
 
         if report_stats is None: