File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 tag_args ,
7777 trace ,
7878)
79+ from synapse .metrics import SERVER_NAME_LABEL
7980from synapse .metrics .background_process_metrics import run_as_background_process
8081from synapse .replication .http .federation import (
8182 ReplicationFederationSendEventsRestServlet ,
111112backfill_processing_after_timer = Histogram (
112113 "synapse_federation_backfill_processing_after_time_seconds" ,
113114 "sec" ,
114- [ ],
115+ labelnames = [ SERVER_NAME_LABEL ],
115116 buckets = (
116117 0.1 ,
117118 0.25 ,
@@ -690,7 +691,9 @@ async def backfill(
690691 if not events :
691692 return
692693
693- with backfill_processing_after_timer .time ():
694+ with backfill_processing_after_timer .labels (
695+ ** {SERVER_NAME_LABEL : self .server_name }
696+ ).time ():
694697 # if there are any events in the wrong room, the remote server is buggy and
695698 # should not be trusted.
696699 for ev in events :
You can’t perform that action at this time.
0 commit comments