File tree 4 files changed +1
-4
lines changed
examples/basic-otlp-http/src
4 files changed +1
-4
lines changed Original file line number Diff line number Diff line change
1
+ /// To use hyper as the HTTP client - cargo run --features="hyper" --no-default-features
1
2
use once_cell:: sync:: Lazy ;
2
3
use opentelemetry:: {
3
4
global,
Original file line number Diff line number Diff line change @@ -165,13 +165,11 @@ impl HttpExporterBuilder {
165
165
} ,
166
166
None => self . exporter_config . timeout ,
167
167
} ;
168
- println ! ( "build_client: timeout={:?}" , timeout) ;
169
168
let http_client = self
170
169
. http_config
171
170
. client
172
171
. take ( )
173
172
. ok_or ( crate :: Error :: NoHttpClient ) ?;
174
- println ! ( "build_client: http_client={:?}" , http_client) ;
175
173
#[ allow( clippy:: mutable_key_type) ] // http headers are not mutated
176
174
let mut headers: HashMap < HeaderName , HeaderValue > = self
177
175
. http_config
Original file line number Diff line number Diff line change @@ -204,7 +204,6 @@ impl<B: HasExportConfig> WithExportConfig for B {
204
204
}
205
205
206
206
fn with_protocol ( mut self , protocol : Protocol ) -> Self {
207
- println ! ( "WithExportConfig::with_protocol" ) ;
208
207
self . export_config ( ) . protocol = protocol;
209
208
self
210
209
}
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ impl SpanExporterBuilder<NoExporterBuilderSet> {
54
54
55
55
#[ cfg( any( feature = "http-proto" , feature = "http-json" ) ) ]
56
56
pub fn with_http ( self ) -> SpanExporterBuilder < HttpExporterBuilderSet > {
57
- println ! ( "SpanExporterBuilder::with_http" ) ;
58
57
SpanExporterBuilder {
59
58
client : HttpExporterBuilderSet ( HttpExporterBuilder :: default ( ) ) ,
60
59
}
You can’t perform that action at this time.
0 commit comments