diff --git a/bins/nittei/src/telemetry.rs b/bins/nittei/src/telemetry.rs index 07544b23..d9f0bdca 100644 --- a/bins/nittei/src/telemetry.rs +++ b/bins/nittei/src/telemetry.rs @@ -201,8 +201,10 @@ fn get_sampler() -> Sampler { /// Get the HTTP client to be used /// This is used to send traces to the tracing endpoint -fn get_http_client() -> anyhow::Result { - reqwest::Client::builder() +/// +/// The exporter runs on a different thread than the main thread, so we need to use a blocking client. +fn get_http_client() -> anyhow::Result { + reqwest::blocking::Client::builder() .timeout(Duration::from_secs(10)) .connect_timeout(Duration::from_secs(5)) .build()