Skip to content

Commit

Permalink
fix deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Dec 11, 2024
1 parent 7670cfb commit 2446ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-contrib/benches/new_span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!());
Expand Down

0 comments on commit 2446ee8

Please sign in to comment.