From 8d9bbcfa9848c84d945b0a52f22e11c38676bc07 Mon Sep 17 00:00:00 2001 From: Lalit Kumar Bhasin Date: Thu, 31 Oct 2024 13:35:35 -0700 Subject: [PATCH] add doc, remove further println --- opentelemetry-otlp/examples/basic-otlp-http/src/main.rs | 1 + opentelemetry-otlp/src/exporter/http/mod.rs | 2 -- opentelemetry-otlp/src/exporter/mod.rs | 1 - opentelemetry-otlp/src/span.rs | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs b/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs index 765405556e..c67d6b21c5 100644 --- a/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs +++ b/opentelemetry-otlp/examples/basic-otlp-http/src/main.rs @@ -1,3 +1,4 @@ +/// To use hyper as the HTTP client - cargo run --features="hyper" --no-default-features use once_cell::sync::Lazy; use opentelemetry::{ global, diff --git a/opentelemetry-otlp/src/exporter/http/mod.rs b/opentelemetry-otlp/src/exporter/http/mod.rs index 762c8b79f9..154871887b 100644 --- a/opentelemetry-otlp/src/exporter/http/mod.rs +++ b/opentelemetry-otlp/src/exporter/http/mod.rs @@ -165,13 +165,11 @@ impl HttpExporterBuilder { }, None => self.exporter_config.timeout, }; - println!("build_client: timeout={:?}", timeout); let http_client = self .http_config .client .take() .ok_or(crate::Error::NoHttpClient)?; - println!("build_client: http_client={:?}", http_client); #[allow(clippy::mutable_key_type)] // http headers are not mutated let mut headers: HashMap = self .http_config diff --git a/opentelemetry-otlp/src/exporter/mod.rs b/opentelemetry-otlp/src/exporter/mod.rs index 471fd89b99..bec1c809bb 100644 --- a/opentelemetry-otlp/src/exporter/mod.rs +++ b/opentelemetry-otlp/src/exporter/mod.rs @@ -204,7 +204,6 @@ impl WithExportConfig for B { } fn with_protocol(mut self, protocol: Protocol) -> Self { - println!("WithExportConfig::with_protocol"); self.export_config().protocol = protocol; self } diff --git a/opentelemetry-otlp/src/span.rs b/opentelemetry-otlp/src/span.rs index 13f2af3791..6cf40a3d99 100644 --- a/opentelemetry-otlp/src/span.rs +++ b/opentelemetry-otlp/src/span.rs @@ -54,7 +54,6 @@ impl SpanExporterBuilder { #[cfg(any(feature = "http-proto", feature = "http-json"))] pub fn with_http(self) -> SpanExporterBuilder { - println!("SpanExporterBuilder::with_http"); SpanExporterBuilder { client: HttpExporterBuilderSet(HttpExporterBuilder::default()), }