diff options
author | Jorik Schellekens <joriks@matrix.org> | 2019-07-08 14:00:36 +0100 |
---|---|---|
committer | Jorik Schellekens <joriks@matrix.org> | 2019-07-17 14:33:00 +0100 |
commit | 52a7f625a832d4eaabb6c6038a624862b0d1c215 (patch) | |
tree | 8d9a82e707cc74e0cde81ff3fed3690ad1f56515 /synapse | |
parent | Opentracing across streams (diff) | |
download | synapse-52a7f625a832d4eaabb6c6038a624862b0d1c215.tar.xz |
Some tracing
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/device.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index dec87f6e7f..8e4cf7cf36 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -398,6 +398,7 @@ class DeviceHandler(DeviceWorkerHandler): else: raise + @opentracing.trace_defered_function @measure_func("notify_device_update") @defer.inlineCallbacks def notify_device_update(self, user_id, device_ids): @@ -413,6 +414,8 @@ class DeviceHandler(DeviceWorkerHandler): hosts.update(get_domain_from_id(u) for u in users_who_share_room) hosts.discard(self.server_name) + opentracing.set_tag("hosts to update", hosts) + position = yield self.store.add_device_change_to_streams( user_id, device_ids, list(hosts) ) @@ -432,6 +435,9 @@ class DeviceHandler(DeviceWorkerHandler): ) for host in hosts: self.federation_sender.send_device_messages(host) + opentracing.log_kv( + {"message": "sent device update to host", "host": host} + ) @defer.inlineCallbacks def on_federation_query_user_devices(self, user_id): |