mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Basic sentry integration
This commit is contained in:
parent
b18cd25e42
commit
ef2228c890
3 changed files with 31 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue