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/handlers/relations.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/handlers/relations.py')
-rw-r--r-- | synapse/handlers/relations.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/relations.py b/synapse/handlers/relations.py index 8f797e3ae9..72d25df8c8 100644 --- a/synapse/handlers/relations.py +++ b/synapse/handlers/relations.py @@ -19,6 +19,7 @@ import attr from synapse.api.constants import RelationTypes from synapse.api.errors import SynapseError from synapse.events import EventBase, relation_from_event +from synapse.logging.opentracing import trace from synapse.storage.databases.main.relations import _RelatedEvent from synapse.types import JsonDict, Requester, StreamToken, UserID from synapse.visibility import filter_events_for_client @@ -361,6 +362,7 @@ class RelationsHandler: return results + @trace async def get_bundled_aggregations( self, events: Iterable[EventBase], user_id: str ) -> Dict[str, BundledAggregations]: |