@@ -167,8 +167,8 @@ impl TracerProvider {
167
167
}
168
168
169
169
/// Create a new [`TracerProvider`] builder.
170
- pub fn builder ( ) -> Builder {
171
- Builder :: default ( )
170
+ pub fn builder ( ) -> TracerProviderBuilder {
171
+ TracerProviderBuilder :: default ( )
172
172
}
173
173
174
174
/// Span processors associated with this provider
@@ -274,12 +274,12 @@ impl opentelemetry::trace::TracerProvider for TracerProvider {
274
274
275
275
/// Builder for provider attributes.
276
276
#[ derive( Debug , Default ) ]
277
- pub struct Builder {
277
+ pub struct TracerProviderBuilder {
278
278
processors : Vec < Box < dyn SpanProcessor > > ,
279
279
config : crate :: trace:: Config ,
280
280
}
281
281
282
- impl Builder {
282
+ impl TracerProviderBuilder {
283
283
/// Adds a [SimpleSpanProcessor] with the configured exporter to the pipeline.
284
284
///
285
285
/// # Arguments
@@ -295,7 +295,7 @@ impl Builder {
295
295
let mut processors = self . processors ;
296
296
processors. push ( Box :: new ( SimpleSpanProcessor :: new ( Box :: new ( exporter) ) ) ) ;
297
297
298
- Builder { processors, ..self }
298
+ TracerProviderBuilder { processors, ..self }
299
299
}
300
300
301
301
/// Adds a [BatchSpanProcessor] with the configured exporter to the pipeline.
@@ -329,7 +329,7 @@ impl Builder {
329
329
let mut processors = self . processors ;
330
330
processors. push ( Box :: new ( processor) ) ;
331
331
332
- Builder { processors, ..self }
332
+ TracerProviderBuilder { processors, ..self }
333
333
}
334
334
335
335
/// The sdk [`crate::trace::Config`] that this provider will use.
@@ -338,7 +338,7 @@ impl Builder {
338
338
note = "Config is becoming a private type. Use Builder::with_{config_name}(resource) instead. ex: Builder::with_resource(resource)"
339
339
) ]
340
340
pub fn with_config ( self , config : crate :: trace:: Config ) -> Self {
341
- Builder { config, ..self }
341
+ TracerProviderBuilder { config, ..self }
342
342
}
343
343
344
344
/// Specify the sampler to be used.
@@ -398,7 +398,7 @@ impl Builder {
398
398
///
399
399
/// [Tracer]: opentelemetry::trace::Tracer
400
400
pub fn with_resource ( self , resource : Resource ) -> Self {
401
- Builder {
401
+ TracerProviderBuilder {
402
402
config : self . config . with_resource ( resource) ,
403
403
..self
404
404
}
0 commit comments