From 452377a6b2be5e0759aa8e8028dc41f9269d2a82 Mon Sep 17 00:00:00 2001 From: ilya Date: Wed, 11 Sep 2024 11:06:27 +0300 Subject: [PATCH] [TRIVIAL] Drop auction preprocessing metric (#2969) Since the pre-processing job was removed(https://github.com/cowprotocol/services/pull/2960), this metric doesn't make sense anymore. --- crates/autopilot/src/run_loop.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/autopilot/src/run_loop.rs b/crates/autopilot/src/run_loop.rs index cfe24d5b5d..66b72be740 100644 --- a/crates/autopilot/src/run_loop.rs +++ b/crates/autopilot/src/run_loop.rs @@ -180,8 +180,6 @@ impl RunLoop { let single_run_start = Instant::now(); tracing::info!(?auction_id, "solving"); - Metrics::pre_processed(single_run_start.elapsed()); - let solutions = self.competition(auction_id, auction).await; if solutions.is_empty() { tracing::info!("no solutions for auction"); @@ -828,10 +826,6 @@ struct Metrics { /// solved and before sending a `settle` request. auction_postprocessing_time: prometheus::Histogram, - /// Tracks the time spent in pre-processing before sending a `solve` - /// request. - auction_preprocessing_time: prometheus::Histogram, - /// Tracks the time spent running maintenance. This mostly consists of /// indexing new events. #[metric(buckets(0, 0.01, 0.05, 0.1, 0.2, 0.5, 1., 2., 5.))] @@ -952,12 +946,6 @@ impl Metrics { .observe(elapsed.as_secs_f64()); } - fn pre_processed(elapsed: Duration) { - Self::get() - .auction_preprocessing_time - .observe(elapsed.as_secs_f64()); - } - fn ran_maintenance(elapsed: Duration) { Self::get() .service_maintenance_time