add tracing to get of authed client

This commit is contained in:
Ruben Fiszel
2025-05-20 16:38:29 +02:00
parent 70e52a5cf9
commit 31dae40685
+4 -3
View File
@@ -399,9 +399,10 @@ impl AuthedClient {
)
.send()
.await
.context(format!(
"Executing request from authed http client to {url} with query {query:?}",
))
.map_err(|e| {
tracing::error!("Error executing get request from authed http client to {url} with query {query:?}: {e}");
anyhow::anyhow!("Error executing get request from authed http client to {url} with query {query:?}: {e}")
})
}
pub async fn get_id_token(&self, audience: &str) -> anyhow::Result<String> {