From 898ba0effe3d2563764c2a057df22f901f836d23 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Thu, 11 Aug 2022 10:27:55 -0500 Subject: More tracing --- synapse/storage/databases/main/relations.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'synapse/storage/databases/main/relations.py') diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index 7bd27790eb..255854cd66 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -30,6 +30,7 @@ import attr from synapse.api.constants import RelationTypes from synapse.events import EventBase +from synapse.logging.tracing import trace from synapse.storage._base import SQLBaseStore from synapse.storage.database import LoggingTransaction, make_in_list_sql_clause from synapse.storage.databases.main.stream import generate_pagination_where_clause @@ -349,6 +350,10 @@ class RelationsWorkerStore(SQLBaseStore): def get_applicable_edit(self, event_id: str) -> Optional[EventBase]: raise NotImplementedError() + # TODO: What's the proper way to fix this so we can stack @trace on top of + # @cachedList + # + # @trace @cachedList(cached_method_name="get_applicable_edit", list_name="event_ids") async def get_applicable_edits( self, event_ids: Collection[str] -- cgit 1.5.1