summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-06-04 09:25:33 +0100
committerGitHub <noreply@github.com>2021-06-04 09:25:33 +0100
commitd8be7d493d7a91a55ee37a7931157d4557a508fb (patch)
tree452c0c67917f0ec93fb0244729e2b323ffc59e58 /synapse
parentCompile and render Synapse's docs into a browsable, mobile-friendly and searc... (diff)
downloadsynapse-d8be7d493d7a91a55ee37a7931157d4557a508fb.tar.xz
Enable Prometheus metrics for the jaeger client library (#10112)
Diffstat (limited to '')
-rw-r--r--synapse/logging/opentracing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py
index 68f0c00151..26c8ffe780 100644
--- a/synapse/logging/opentracing.py
+++ b/synapse/logging/opentracing.py
@@ -362,10 +362,13 @@ def init_tracer(hs: "HomeServer"):
 
     set_homeserver_whitelist(hs.config.opentracer_whitelist)
 
+    from jaeger_client.metrics.prometheus import PrometheusMetricsFactory
+
     config = JaegerConfig(
         config=hs.config.jaeger_config,
         service_name="{} {}".format(hs.config.server_name, hs.get_instance_name()),
         scope_manager=LogContextScopeManager(hs.config),
+        metrics_factory=PrometheusMetricsFactory(),
     )
 
     # If we have the rust jaeger reporter available let's use that.