summary refs log tree commit diff
path: root/synapse/http/request_metrics.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/http/request_metrics.py')
-rw-r--r--synapse/http/request_metrics.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/http/request_metrics.py b/synapse/http/request_metrics.py
index 2b6d113544..4acb30e1db 100644
--- a/synapse/http/request_metrics.py
+++ b/synapse/http/request_metrics.py
@@ -21,6 +21,7 @@ from typing import Dict, Mapping, Set, Tuple
 from prometheus_client.core import Counter, Histogram
 
 from synapse.logging.context import current_context
+from synapse.logging.opentracing import get_prometheus_exemplar
 from synapse.metrics import LaterGauge
 
 logger = logging.getLogger(__name__)
@@ -193,7 +194,7 @@ class RequestMetrics:
         response_count.labels(self.method, self.name, tag).inc()
 
         response_timer.labels(self.method, self.name, tag, response_code_str).observe(
-            time_sec - self.start_ts
+            time_sec - self.start_ts, exemplar=get_prometheus_exemplar()
         )
 
         resource_usage = context.get_resource_usage()