From c7761b689dd6db725deec2595b123c68d3d2a732 Mon Sep 17 00:00:00 2001 From: Folke Behrens Date: Wed, 23 Jul 2025 11:50:21 +0200 Subject: [PATCH] otel: Use blocking reqwest in dedicated thread OTel 0.28+ by default uses blocking operations in a dedicated thread. --- Cargo.toml | 2 +- libs/tracing-utils/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 64d0a55196..1402c0b38d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -146,7 +146,7 @@ num-traits = "0.2.19" once_cell = "1.13" opentelemetry = "0.30" opentelemetry_sdk = "0.30" -opentelemetry-otlp = { version = "0.30", default-features = false, features = ["http-proto", "trace", "http", "reqwest-client"] } +opentelemetry-otlp = { version = "0.30", default-features = false, features = ["http-proto", "trace", "http", "reqwest-blocking-client"] } opentelemetry-semantic-conventions = "0.30" parking_lot = "0.12" parquet = { version = "53", default-features = false, features = ["zstd"] } diff --git a/libs/tracing-utils/Cargo.toml b/libs/tracing-utils/Cargo.toml index 49a6055b1e..1f8d05ae80 100644 --- a/libs/tracing-utils/Cargo.toml +++ b/libs/tracing-utils/Cargo.toml @@ -8,7 +8,7 @@ license.workspace = true hyper0.workspace = true opentelemetry = { workspace = true, features = ["trace"] } opentelemetry_sdk = { workspace = true, features = ["rt-tokio"] } -opentelemetry-otlp = { workspace = true, default-features = false, features = ["http-proto", "trace", "http", "reqwest-client"] } +opentelemetry-otlp = { workspace = true, default-features = false, features = ["http-proto", "trace", "http", "reqwest-blocking-client"] } opentelemetry-semantic-conventions.workspace = true tokio = { workspace = true, features = ["rt", "rt-multi-thread"] } tracing.workspace = true