Trace more e2e stuff and less e2e stuff

This commit is contained in:
Jorik Schellekens 2019-06-28 17:09:25 +01:00
parent 1e7099d04c
commit d876cda725
2 changed files with 5 additions and 1 deletions

View file

@ -271,7 +271,6 @@ class E2eRoomKeysHandler(object):
)
return new_version
@trace_defered_function
@defer.inlineCallbacks
def get_version_info(self, user_id, version=None):
"""Get the info about a given version of the user's backup

View file

@ -23,6 +23,10 @@ from synapse.http.servlet import (
parse_json_object_from_request,
parse_string,
)
from synapse.util.tracerutils import (
TracerUtil,
trace_defered_function_using_operation_name,
)
from ._base import client_patterns
@ -311,6 +315,7 @@ class RoomKeysVersionServlet(RestServlet):
self.auth = hs.get_auth()
self.e2e_room_keys_handler = hs.get_e2e_room_keys_handler()
@trace_defered_function_using_operation_name("get_room_keys_version")
@defer.inlineCallbacks
def on_GET(self, request, version):
"""