Skip to content

Commit 8d9bbcf

Browse files
committed
add doc, remove further println
1 parent 60755fc commit 8d9bbcf

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

opentelemetry-otlp/examples/basic-otlp-http/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// To use hyper as the HTTP client - cargo run --features="hyper" --no-default-features
12
use once_cell::sync::Lazy;
23
use opentelemetry::{
34
global,

opentelemetry-otlp/src/exporter/http/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,11 @@ impl HttpExporterBuilder {
165165
},
166166
None => self.exporter_config.timeout,
167167
};
168-
println!("build_client: timeout={:?}", timeout);
169168
let http_client = self
170169
.http_config
171170
.client
172171
.take()
173172
.ok_or(crate::Error::NoHttpClient)?;
174-
println!("build_client: http_client={:?}", http_client);
175173
#[allow(clippy::mutable_key_type)] // http headers are not mutated
176174
let mut headers: HashMap<HeaderName, HeaderValue> = self
177175
.http_config

opentelemetry-otlp/src/exporter/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ impl<B: HasExportConfig> WithExportConfig for B {
204204
}
205205

206206
fn with_protocol(mut self, protocol: Protocol) -> Self {
207-
println!("WithExportConfig::with_protocol");
208207
self.export_config().protocol = protocol;
209208
self
210209
}

opentelemetry-otlp/src/span.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl SpanExporterBuilder<NoExporterBuilderSet> {
5454

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

0 commit comments

Comments
 (0)