Eric Eastwood 2022-08-23 02:47:30 -05:00 committed by GitHub
parent 3dd175b628
commit 9385c41ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 2 deletions

View file

@ -116,9 +116,13 @@ messsages_response_timer = Histogram(
2.5,
5.0,
10.0,
20.0,
30.0,
60.0,
80.0,
100.0,
120.0,
150.0,
180.0,
"+Inf",
),
@ -674,7 +678,7 @@ class RoomMessageListRestServlet(RestServlet):
room_member_count = await make_deferred_yieldable(room_member_count_deferred)
messsages_response_timer.labels(
room_size=_RoomSize.from_member_count(room_member_count)
).observe((processing_start_time - processing_end_time) / 1000)
).observe((processing_end_time - processing_start_time) / 1000)
return 200, msgs