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.
This commit is contained in:
Jon Häggblad
2025-05-15 12:46:33 +02:00
committed by GitHub
parent 370a4a3a03
commit 87aab4e31e
+1
View File
@@ -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<B, K, V>(
&self,
method: reqwest::Method,