mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 09:14:11 -04:00
Report per request metrics for all of the things using request_handler
This commit is contained in:
parent
21d188bf95
commit
8d7ad44331
9 changed files with 76 additions and 47 deletions
|
@ -97,7 +97,7 @@ class RemoteKey(Resource):
|
|||
self.async_render_GET(request)
|
||||
return NOT_DONE_YET
|
||||
|
||||
@request_handler
|
||||
@request_handler()
|
||||
@defer.inlineCallbacks
|
||||
def async_render_GET(self, request):
|
||||
if len(request.postpath) == 1:
|
||||
|
@ -122,7 +122,7 @@ class RemoteKey(Resource):
|
|||
self.async_render_POST(request)
|
||||
return NOT_DONE_YET
|
||||
|
||||
@request_handler
|
||||
@request_handler()
|
||||
@defer.inlineCallbacks
|
||||
def async_render_POST(self, request):
|
||||
content = parse_json_object_from_request(request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue