Browse Source

Trace event fetches

Erik Johnston 3 years ago
parent
commit
5e88964994
1 changed files with 2 additions and 0 deletions
  1. 2 0
      synapse/storage/databases/main/events_worker.py

+ 2 - 0
synapse/storage/databases/main/events_worker.py

@@ -48,6 +48,7 @@ from synapse.logging.context import (
     current_context,
     make_deferred_yieldable,
 )
+from synapse.logging.opentracing import trace
 from synapse.metrics.background_process_metrics import (
     run_as_background_process,
     wrap_as_background_process,
@@ -391,6 +392,7 @@ class EventsWorkerStore(SQLBaseStore):
 
         return {e.event_id: e for e in events}
 
+    @trace
     async def get_events_as_list(
         self,
         event_ids: Collection[str],