We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb293bf commit dd5077dCopy full SHA for dd5077d
bins/nittei/src/telemetry.rs
@@ -201,8 +201,10 @@ fn get_sampler() -> Sampler {
201
202
/// Get the HTTP client to be used
203
/// This is used to send traces to the tracing endpoint
204
-fn get_http_client() -> anyhow::Result<reqwest::Client> {
205
- reqwest::Client::builder()
+///
+/// The exporter runs on a different thread than the main thread, so we need to use a blocking client.
206
+fn get_http_client() -> anyhow::Result<reqwest::blocking::Client> {
207
+ reqwest::blocking::Client::builder()
208
.timeout(Duration::from_secs(10))
209
.connect_timeout(Duration::from_secs(5))
210
.build()
0 commit comments