pub async fn collect_from_metrics( client: Client, resources: &mut Vec<Resource>, ) -> Result<(), Error>