Skip to content

Commit 41d4c57

Browse files
committed
add back http client
1 parent 069adb4 commit 41d4c57

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ opentelemetry-otlp = { version = "0.31.0", features = [
8484
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio", "rt-tokio-current-thread"] }
8585
tracing-opentelemetry = "0.32.0"
8686
reqwest = { version = "0.12", features = ["json"] }
87-
opentelemetry-datadog = { version = "0.19.0" }
87+
opentelemetry-datadog = { version = "0.19.0", features = ["reqwest-blocking-client", "reqwest-client"] }
8888
opentelemetry-semantic-conventions = { version = "0.31.0" }

crates/ingress-rpc/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ async fn main() -> anyhow::Result<()> {
152152
.with_service_name(&filter_name)
153153
.with_api_version(ApiVersion::Version05)
154154
.with_trace_config(trace_cfg)
155+
.with_http_client(reqwest::blocking::Client::new())
155156
.with_agent_endpoint(&otlp_endpoint) // TODO: do we need to configure HTTP client?
156-
.install_batch()?;
157+
.install_simple()?; // TODO: use batch exporter later
157158
global::set_tracer_provider(provider.clone());
158159
let scope = InstrumentationScope::builder(filter_name.clone())
159160
.with_version(env!("CARGO_PKG_VERSION"))

0 commit comments

Comments
 (0)