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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user