diff options
author | Jorik Schellekens <joriksch@gmail.com> | 2019-09-03 10:21:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 10:21:30 +0100 |
commit | a90d16dabc6f498136a098568b1d37858d4af5b6 (patch) | |
tree | c8f5e2e1750a594b8986ff07823c31f69712f6f8 /synapse/rest/client/v2_alpha/sendtodevice.py | |
parent | Remove unused methods from c/s api v1 in register.py (#5963) (diff) | |
download | synapse-a90d16dabc6f498136a098568b1d37858d4af5b6.tar.xz |
Opentrace device lists (#5853)
Trace device list changes.
Diffstat (limited to 'synapse/rest/client/v2_alpha/sendtodevice.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/sendtodevice.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/sendtodevice.py b/synapse/rest/client/v2_alpha/sendtodevice.py index 2613648d82..d90e52ed1a 100644 --- a/synapse/rest/client/v2_alpha/sendtodevice.py +++ b/synapse/rest/client/v2_alpha/sendtodevice.py @@ -19,6 +19,7 @@ from twisted.internet import defer from synapse.http import servlet from synapse.http.servlet import parse_json_object_from_request +from synapse.logging.opentracing import set_tag, trace from synapse.rest.client.transactions import HttpTransactionCache from ._base import client_patterns @@ -42,7 +43,10 @@ class SendToDeviceRestServlet(servlet.RestServlet): self.txns = HttpTransactionCache(hs) self.device_message_handler = hs.get_device_message_handler() + @trace(opname="sendToDevice") def on_PUT(self, request, message_type, txn_id): + set_tag("message_type", message_type) + set_tag("txn_id", txn_id) return self.txns.fetch_or_execute_request( request, self._put, request, message_type, txn_id ) |