diff options
author | Eric Eastwood <erice@element.io> | 2022-08-03 10:57:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 10:57:38 -0500 |
commit | 92d21faf12c982a8d27ad465eb94f2fed0e8b32f (patch) | |
tree | 92575050ec2751e404df3328020ad73eeb1c3d81 /synapse/visibility.py | |
parent | Return 404 or member list when getting joined_members after leaving (#13374) (diff) | |
download | synapse-92d21faf12c982a8d27ad465eb94f2fed0e8b32f.tar.xz |
Instrument `/messages` for understandable traces in Jaeger (#13368)
In Jaeger: - Before: huge list of uncategorized database calls - After: nice and collapsible into units of work
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r-- | synapse/visibility.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py index 9abbaa5a64..d947edde66 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py @@ -23,6 +23,7 @@ from synapse.api.constants import EventTypes, HistoryVisibility, Membership from synapse.events import EventBase from synapse.events.snapshot import EventContext from synapse.events.utils import prune_event +from synapse.logging.opentracing import trace from synapse.storage.controllers import StorageControllers from synapse.storage.databases.main import DataStore from synapse.storage.state import StateFilter @@ -51,6 +52,7 @@ MEMBERSHIP_PRIORITY = ( _HISTORY_VIS_KEY: Final[Tuple[str, str]] = (EventTypes.RoomHistoryVisibility, "") +@trace async def filter_events_for_client( storage: StorageControllers, user_id: str, |