mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 02:24:19 -05:00
Measure keyrings
This commit is contained in:
parent
39242090e3
commit
2426c2f21a
@ -22,6 +22,7 @@ from synapse.util.logcontext import (
|
|||||||
preserve_context_over_deferred, preserve_context_over_fn, PreserveLoggingContext,
|
preserve_context_over_deferred, preserve_context_over_fn, PreserveLoggingContext,
|
||||||
preserve_fn
|
preserve_fn
|
||||||
)
|
)
|
||||||
|
from synapse.util.metrics import Measure
|
||||||
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
@ -115,6 +116,7 @@ class Keyring(object):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def handle_key_deferred(verify_request):
|
def handle_key_deferred(verify_request):
|
||||||
|
with Measure(self.clock, "handle_key_deferred"):
|
||||||
server_name = verify_request.server_name
|
server_name = verify_request.server_name
|
||||||
try:
|
try:
|
||||||
_, key_id, verify_key = yield verify_request.deferred
|
_, key_id, verify_key = yield verify_request.deferred
|
||||||
|
Loading…
Reference in New Issue
Block a user