summary refs log tree commit diff
path: root/synapse/storage/databases/main/relations.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-08-11 10:27:55 -0500
committerEric Eastwood <erice@element.io>2022-08-11 10:27:55 -0500
commit898ba0effe3d2563764c2a057df22f901f836d23 (patch)
tree524dd83ab043ce3b9ac813699727ab0ab69afd06 /synapse/storage/databases/main/relations.py
parentInstrument FederationStateIdsServlet (diff)
downloadsynapse-898ba0effe3d2563764c2a057df22f901f836d23.tar.xz
More tracing
Diffstat (limited to 'synapse/storage/databases/main/relations.py')
-rw-r--r--synapse/storage/databases/main/relations.py5
1 files changed, 5 insertions, 0 deletions
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]