mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-10 12:02:43 +01:00
Fix new metric where we used ms instead of seconds (#7771)
Introduced in #7755, not yet released.
This commit is contained in:
parent
8718021469
commit
1e03513f9a
3 changed files with 3 additions and 2 deletions
1
changelog.d/7771.misc
Normal file
1
changelog.d/7771.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Add some metrics for inbound and outbound federation latencies: `synapse_federation_server_pdu_process_time` and `synapse_event_processing_lag_by_event`.
|
|
@ -209,7 +209,7 @@ class FederationSender(object):
|
|||
|
||||
synapse.metrics.event_processing_lag_by_event.labels(
|
||||
"federation_sender"
|
||||
).observe(now - ts)
|
||||
).observe((now - ts) / 1000)
|
||||
|
||||
async def handle_room_events(events: Iterable[EventBase]) -> None:
|
||||
with Measure(self.clock, "handle_room_events"):
|
||||
|
|
|
@ -118,7 +118,7 @@ class ApplicationServicesHandler(object):
|
|||
ts = yield self.store.get_received_ts(event.event_id)
|
||||
synapse.metrics.event_processing_lag_by_event.labels(
|
||||
"appservice_sender"
|
||||
).observe(now - ts)
|
||||
).observe((now - ts) / 1000)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def handle_room_events(events):
|
||||
|
|
Loading…
Reference in a new issue