diff options
author | Erik Johnston <erik@matrix.org> | 2021-04-01 17:08:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 17:08:21 +0100 |
commit | 33548f37aa7858c4d9ce01bf3ec931cc3f08833a (patch) | |
tree | a301076b73976909451029fa1fdb53ef3d03a6ae /synapse/logging/opentracing.py | |
parent | Add `order_by` to list user admin API (#9691) (diff) | |
download | synapse-33548f37aa7858c4d9ce01bf3ec931cc3f08833a.tar.xz |
Improve tracing for to device messages (#9686)
Diffstat (limited to 'synapse/logging/opentracing.py')
-rw-r--r-- | synapse/logging/opentracing.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/logging/opentracing.py b/synapse/logging/opentracing.py index aa146e8bb8..b8081f197e 100644 --- a/synapse/logging/opentracing.py +++ b/synapse/logging/opentracing.py @@ -259,6 +259,14 @@ except ImportError: logger = logging.getLogger(__name__) +class SynapseTags: + # The message ID of any to_device message processed + TO_DEVICE_MESSAGE_ID = "to_device.message_id" + + # Whether the sync response has new data to be returned to the client. + SYNC_RESULT = "sync.new_data" + + # Block everything by default # A regex which matches the server_names to expose traces for. # None means 'block everything'. |