diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2022-12-06 09:52:55 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 09:52:55 +0000 |
commit | cb59e080627745d089d073d9dac276362d9abaf6 (patch) | |
tree | 53043ef70d583929c21a774b2449ee8711f6ffce /synapse/federation | |
parent | Better return type for `get_all_entities_changed` (#14604) (diff) | |
download | synapse-cb59e080627745d089d073d9dac276362d9abaf6.tar.xz |
Improve logging and opentracing for to-device message handling (#14598)
A batch of changes intended to make it easier to trace to-device messages through the system. The intention here is that a client can set a property org.matrix.msgid in any to-device message it sends. That ID is then included in any tracing or logging related to the message. (Suggestions as to where this field should be documented welcome. I'm not enthusiastic about speccing it - it's very much an optional extra to help with debugging.) I've also generally improved the data we send to opentracing for these messages.
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/sender/per_destination_queue.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/sender/per_destination_queue.py b/synapse/federation/sender/per_destination_queue.py index 5af2784f1e..ffc9d95ee7 100644 --- a/synapse/federation/sender/per_destination_queue.py +++ b/synapse/federation/sender/per_destination_queue.py @@ -641,7 +641,7 @@ class PerDestinationQueue: if not message_id: continue - set_tag(SynapseTags.TO_DEVICE_MESSAGE_ID, message_id) + set_tag(SynapseTags.TO_DEVICE_EDU_ID, message_id) edus = [ Edu( |