async fn ld_client( api_key: &str, base_uri: Option<&str>, metrics: &Metrics, now_fn: &NowFn, ) -> Result<Client, Error>