From 7ab2088ddc5604940f8755bc8f621c6a55a26072 Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Mon, 5 Aug 2019 14:04:07 +0100 Subject: [PATCH] Remove redundent tagging. --- synapse/handlers/e2e_keys.py | 2 -- synapse/rest/client/v2_alpha/keys.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/synapse/handlers/e2e_keys.py b/synapse/handlers/e2e_keys.py index d6f894dd722f..43492add6fbe 100644 --- a/synapse/handlers/e2e_keys.py +++ b/synapse/handlers/e2e_keys.py @@ -303,7 +303,6 @@ def upload_keys_for_user(self, user_id, device_id, keys): # TODO: Validate the JSON to make sure it has the right keys. device_keys = keys.get("device_keys", None) - opentracing.set_tag("device_keys", device_keys) if device_keys: logger.info( "Updating device_keys for device %r for user %s at %d", @@ -330,7 +329,6 @@ def upload_keys_for_user(self, user_id, device_id, keys): {"message": "Not updating device_keys for user", "user_id": user_id} ) one_time_keys = keys.get("one_time_keys", None) - opentracing.set_tag("one_time_keys", one_time_keys) if one_time_keys: opentracing.log_kv( { diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py index 41cdab9532df..f2722be18127 100644 --- a/synapse/rest/client/v2_alpha/keys.py +++ b/synapse/rest/client/v2_alpha/keys.py @@ -199,8 +199,6 @@ def on_GET(self, request): user_id = requester.user.to_string() - opentracing.set_tag("user_id", user_id) - results = yield self.device_handler.get_user_ids_changed(user_id, from_token) return (200, results)