Skip to content

Commit

Permalink
add doc, remove further println
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Oct 31, 2024
1 parent 60755fc commit 8d9bbcf
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions opentelemetry-otlp/examples/basic-otlp-http/src/main.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 0 additions & 2 deletions opentelemetry-otlp/src/exporter/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<HeaderName, HeaderValue> = self
.http_config
Expand Down
1 change: 0 additions & 1 deletion opentelemetry-otlp/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ impl<B: HasExportConfig> WithExportConfig for B {
}

fn with_protocol(mut self, protocol: Protocol) -> Self {
println!("WithExportConfig::with_protocol");
self.export_config().protocol = protocol;
self
}
Expand Down
1 change: 0 additions & 1 deletion opentelemetry-otlp/src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ impl SpanExporterBuilder<NoExporterBuilderSet> {

#[cfg(any(feature = "http-proto", feature = "http-json"))]
pub fn with_http(self) -> SpanExporterBuilder<HttpExporterBuilderSet> {
println!("SpanExporterBuilder::with_http");
SpanExporterBuilder {
client: HttpExporterBuilderSet(HttpExporterBuilder::default()),
}
Expand Down

0 comments on commit 8d9bbcf

Please sign in to comment.