Skip to content

Commit 9735424

Browse files
TommyCppcijothomas
andauthored
feat: clean up trace SDK APIs (open-telemetry#1755)
Co-authored-by: Cijo Thomas <cijo.thomas@gmail.com>
1 parent e3d8234 commit 9735424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

traces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod throughput;
2020

2121
lazy_static! {
2222
static ref PROVIDER: sdktrace::TracerProvider = sdktrace::TracerProvider::builder()
23-
.with_config(sdktrace::config().with_sampler(sdktrace::Sampler::AlwaysOn))
23+
.with_config(sdktrace::Config::default().with_sampler(sdktrace::Sampler::AlwaysOn))
2424
.with_span_processor(NoOpSpanProcessor {})
2525
.build();
2626
static ref TRACER: sdktrace::Tracer = PROVIDER.tracer("stress");

0 commit comments

Comments
 (0)