Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pub async fn handle_event(
let new_avg = stats_repository
.recalculate_udp_avg_connect_processing_time_ns(req_processing_time)
.await;

tracing::debug!("Updating average processing time metric for connect requests: {} ns", new_avg);

let mut label_set = LabelSet::from(context.clone());
label_set.upsert(label_name!("request_kind"), LabelValue::new(&req_kind.to_string()));
match stats_repository
Expand All @@ -39,6 +42,12 @@ pub async fn handle_event(
let new_avg = stats_repository
.recalculate_udp_avg_announce_processing_time_ns(req_processing_time)
.await;

tracing::debug!(
"Updating average processing time metric for announce requests: {} ns",
new_avg
);

let mut label_set = LabelSet::from(context.clone());
label_set.upsert(label_name!("request_kind"), LabelValue::new(&req_kind.to_string()));
match stats_repository
Expand All @@ -59,6 +68,9 @@ pub async fn handle_event(
let new_avg = stats_repository
.recalculate_udp_avg_scrape_processing_time_ns(req_processing_time)
.await;

tracing::debug!("Updating average processing time metric for scrape requests: {} ns", new_avg);

let mut label_set = LabelSet::from(context.clone());
label_set.upsert(label_name!("request_kind"), LabelValue::new(&req_kind.to_string()));
match stats_repository
Expand Down
Loading