pub async fn assert_metrics_present( url: &str, metrics_list: &[&str], ) -> Result<(), Box<dyn Error>>
This helper function performs an HTTP request to the specified URL and validates the presence of the specified metrics.