diff --git a/opentelemetry-contrib/benches/new_span.rs b/opentelemetry-contrib/benches/new_span.rs index d8a20e29..82659f6d 100644 --- a/opentelemetry-contrib/benches/new_span.rs +++ b/opentelemetry-contrib/benches/new_span.rs @@ -152,7 +152,7 @@ impl Display for Environment { fn parent_sampled_tracer(inner_sampler: Sampler) -> (TracerProvider, BoxedTracer) { let provider = TracerProvider::builder() - .with_config(Config::default().with_sampler(Sampler::ParentBased(Box::new(inner_sampler)))) + .with_sampler(Sampler::ParentBased(Box::new(inner_sampler))) .with_simple_exporter(NoopExporter) .build(); let tracer = provider.tracer(module_path!());