pub fn set_slow_query_threshold(&self, threshold: Duration) -> anyhow::Result<&Self> {
        let millis = u64::try_from(threshold.as_millis())
            .context("slow_query_threshold is unreasonably large")?;
        self.slow_query_threshold_ms
            .store(millis, Ordering::Relaxed);
        tracing::info!("Set slow query threshold to {threshold:?}");
        Ok(self)
    }
Sets the threshold to denote a DB query as "slow" and log its details.
core/lib/db_connection/src/connection_pool.rs