summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-01-31 12:43:20 +0000
committerGitHub <noreply@github.com>2023-01-31 12:43:20 +0000
commit3b8574b4f250bac1e4d4cfbf6b1ceec83bc0bac2 (patch)
tree4dac0f4334467979a26d3bd0c153746edc463e6e /synapse/federation
parentFix "Re-starting finished log context" spam when creating events (#14947) (diff)
downloadsynapse-3b8574b4f250bac1e4d4cfbf6b1ceec83bc0bac2.tar.xz
Tag /send_join responses to detect faster joins (#14950)
* Tag /send_join responses to detect faster joins

* Changelog

* Define a proper SynapseTag

* isort
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/federation_server.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/federation/federation_server.py b/synapse/federation/federation_server.py
index 3197939a36..c9a6dfd1a4 100644
--- a/synapse/federation/federation_server.py
+++ b/synapse/federation/federation_server.py
@@ -62,7 +62,9 @@ from synapse.logging.context import (
     run_in_background,
 )
 from synapse.logging.opentracing import (
+    SynapseTags,
     log_kv,
+    set_tag,
     start_active_span_from_edu,
     tag_args,
     trace,
@@ -678,6 +680,10 @@ class FederationServer(FederationBase):
         room_id: str,
         caller_supports_partial_state: bool = False,
     ) -> Dict[str, Any]:
+        set_tag(
+            SynapseTags.SEND_JOIN_RESPONSE_IS_PARTIAL_STATE,
+            caller_supports_partial_state,
+        )
         await self._room_member_handler._join_rate_per_room_limiter.ratelimit(  # type: ignore[has-type]
             requester=None,
             key=room_id,