diff options
author | Eric Eastwood <erice@element.io> | 2022-08-15 13:41:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-15 19:41:23 +0100 |
commit | 344a2f767c636259412f7fc2914c1554a5c4dc1d (patch) | |
tree | 71c0fc0393c7f5fe3493149b9156c62d90af2cbe /synapse/handlers | |
parent | Revert "Update locked versions of mypy and mypy-zope (#13521)" (diff) | |
download | synapse-344a2f767c636259412f7fc2914c1554a5c4dc1d.tar.xz |
Instrument `FederationStateIdsServlet` - `/state_ids` (#13499)
Instrument FederationStateIdsServlet - `/state_ids` so it's easier to follow what's going on in Jaeger when viewing a trace.
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 5042236742..6f5ab86ac4 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -59,7 +59,7 @@ from synapse.events.validator import EventValidator from synapse.federation.federation_client import InvalidResponseError from synapse.http.servlet import assert_params_in_dict from synapse.logging.context import nested_logging_context -from synapse.logging.opentracing import trace +from synapse.logging.opentracing import tag_args, trace from synapse.metrics.background_process_metrics import run_as_background_process from synapse.module_api import NOT_SPAM from synapse.replication.http.federation import ( @@ -1081,6 +1081,8 @@ class FederationHandler: return event + @trace + @tag_args async def get_state_ids_for_pdu(self, room_id: str, event_id: str) -> List[str]: """Returns the state at the event. i.e. not including said event.""" event = await self.store.get_event(event_id, check_room_id=room_id) |