From 7ab5e0fbbe584e96cbc30f86cfe3423a5a8166d0 Mon Sep 17 00:00:00 2001 From: Oliver Evans Date: Sat, 14 Sep 2024 02:27:53 +0800 Subject: [PATCH] Don't impl HttpClient for reqwest::blocking::Client on wasm32 (#2073) Co-authored-by: Lalit Kumar Bhasin --- opentelemetry-http/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/opentelemetry-http/src/lib.rs b/opentelemetry-http/src/lib.rs index f3e5e4f70a..bed95cd389 100644 --- a/opentelemetry-http/src/lib.rs +++ b/opentelemetry-http/src/lib.rs @@ -83,6 +83,7 @@ mod reqwest { } } + #[cfg(not(target_arch = "wasm32"))] #[async_trait] impl HttpClient for reqwest::blocking::Client { async fn send(&self, request: Request>) -> Result, HttpError> {