File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
packages/udp-tracker-server/src/statistics/event/handler Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ pub async fn handle_event(
1919 let new_avg = stats_repository
2020 . recalculate_udp_avg_connect_processing_time_ns ( req_processing_time)
2121 . await ;
22+
23+ tracing:: debug!( "Updating average processing time metric for connect requests: {} ns" , new_avg) ;
24+
2225 let mut label_set = LabelSet :: from ( context. clone ( ) ) ;
2326 label_set. upsert ( label_name ! ( "request_kind" ) , LabelValue :: new ( & req_kind. to_string ( ) ) ) ;
2427 match stats_repository
@@ -39,6 +42,12 @@ pub async fn handle_event(
3942 let new_avg = stats_repository
4043 . recalculate_udp_avg_announce_processing_time_ns ( req_processing_time)
4144 . await ;
45+
46+ tracing:: debug!(
47+ "Updating average processing time metric for announce requests: {} ns" ,
48+ new_avg
49+ ) ;
50+
4251 let mut label_set = LabelSet :: from ( context. clone ( ) ) ;
4352 label_set. upsert ( label_name ! ( "request_kind" ) , LabelValue :: new ( & req_kind. to_string ( ) ) ) ;
4453 match stats_repository
@@ -59,6 +68,9 @@ pub async fn handle_event(
5968 let new_avg = stats_repository
6069 . recalculate_udp_avg_scrape_processing_time_ns ( req_processing_time)
6170 . await ;
71+
72+ tracing:: debug!( "Updating average processing time metric for scrape requests: {} ns" , new_avg) ;
73+
6274 let mut label_set = LabelSet :: from ( context. clone ( ) ) ;
6375 label_set. upsert ( label_name ! ( "request_kind" ) , LabelValue :: new ( & req_kind. to_string ( ) ) ) ;
6476 match stats_repository
You can’t perform that action at this time.
0 commit comments