From 618d36ee6d9d9b3d5956587e5d91b386d2bac11a Mon Sep 17 00:00:00 2001 From: bojanserafimov Date: Mon, 10 Jul 2023 15:34:26 -0400 Subject: [PATCH] compute_ctl: log a structured event on successful start (#4679) --- compute_tools/src/compute.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compute_tools/src/compute.rs b/compute_tools/src/compute.rs index aec4e49725..9fcdae73a4 100644 --- a/compute_tools/src/compute.rs +++ b/compute_tools/src/compute.rs @@ -549,6 +549,13 @@ impl ComputeNode { pspec.spec.cluster.cluster_id.as_deref().unwrap_or("None") ); + // Log metrics so that we can search for slow operations in logs + let metrics = { + let state = self.state.lock().unwrap(); + state.metrics.clone() + }; + info!(?metrics, "compute start finished"); + Ok(pg) }