Skip to content

Commit 6a11964

Browse files
committed
Interim comment
1 parent 962d5ce commit 6a11964

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

synapse/util/metrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ class _InFlightMetric(Protocol):
7979
real_time_sum: float
8080

8181

82+
# Each homeserver will have its own `CollectorRegistry`, which is used to namespace the
83+
# metrics to the given homeserver. Because of how `@measure_func` is used as a
84+
# decorator, we have to keep track of this out of band.
8285
metrics_collector_registry_to_in_flight_gauge: Dict[
8386
CollectorRegistry, InFlightGauge
8487
] = {}

0 commit comments

Comments
 (0)