HACK: force tracing for partial state /send_join responses
parent
873cf51149
commit
d6e40d75ff
|
@ -63,6 +63,7 @@ from synapse.logging.context import (
|
||||||
)
|
)
|
||||||
from synapse.logging.opentracing import (
|
from synapse.logging.opentracing import (
|
||||||
SynapseTags,
|
SynapseTags,
|
||||||
|
force_tracing,
|
||||||
log_kv,
|
log_kv,
|
||||||
set_tag,
|
set_tag,
|
||||||
start_active_span_from_edu,
|
start_active_span_from_edu,
|
||||||
|
@ -684,6 +685,10 @@ class FederationServer(FederationBase):
|
||||||
SynapseTags.SEND_JOIN_RESPONSE_IS_PARTIAL_STATE,
|
SynapseTags.SEND_JOIN_RESPONSE_IS_PARTIAL_STATE,
|
||||||
caller_supports_partial_state,
|
caller_supports_partial_state,
|
||||||
)
|
)
|
||||||
|
# TEMPORARY HACK: always gather partial join traces, to see if we can find low-
|
||||||
|
# hanging fruit for making them faster.
|
||||||
|
if caller_supports_partial_state:
|
||||||
|
force_tracing()
|
||||||
await self._room_member_handler._join_rate_per_room_limiter.ratelimit( # type: ignore[has-type]
|
await self._room_member_handler._join_rate_per_room_limiter.ratelimit( # type: ignore[has-type]
|
||||||
requester=None,
|
requester=None,
|
||||||
key=room_id,
|
key=room_id,
|
||||||
|
|
Loading…
Reference in New Issue