From 87aab4e31e30f71c3e3bfc6afb9eaa2561ee7eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Thu, 15 May 2025 12:46:33 +0200 Subject: [PATCH] Instrument create_request (#5760) In the vpn-api client we create requests directly, so let's instrument them as well as the currently instrumented top-level function get_json doesn't capture that. --- common/http-api-client/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/http-api-client/src/lib.rs b/common/http-api-client/src/lib.rs index 43c091e6a3..be1309499f 100644 --- a/common/http-api-client/src/lib.rs +++ b/common/http-api-client/src/lib.rs @@ -519,6 +519,7 @@ pub trait ApiClientCore { #[cfg_attr(target_arch = "wasm32", async_trait(?Send))] #[cfg_attr(not(target_arch = "wasm32"), async_trait)] impl ApiClientCore for Client { + #[instrument(level = "debug", skip_all, fields(path=?path))] fn create_request( &self, method: reqwest::Method,