mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 08:14:10 -04:00
Add opentracing to all client servlets (#5983)
This commit is contained in:
parent
a0d294c306
commit
909827b422
6 changed files with 26 additions and 18 deletions
|
@ -20,7 +20,6 @@ import logging
|
|||
from canonicaljson import json
|
||||
|
||||
from synapse.api.errors import Codes, SynapseError
|
||||
from synapse.logging.opentracing import trace_servlet
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -298,10 +297,7 @@ class RestServlet(object):
|
|||
servlet_classname = self.__class__.__name__
|
||||
method_handler = getattr(self, "on_%s" % (method,))
|
||||
http_server.register_paths(
|
||||
method,
|
||||
patterns,
|
||||
trace_servlet(servlet_classname)(method_handler),
|
||||
servlet_classname,
|
||||
method, patterns, method_handler, servlet_classname
|
||||
)
|
||||
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue