Skip to content

Commit

Permalink
propose NoopTracer for disabling tracer. (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerloh authored Feb 28, 2020
1 parent a57cf27 commit 5810ab8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,7 @@ public class MyTracerConfiguration {

@Bean
public io.opentracing.Tracer jaegerTracer() {
final Reporter reporter = new InMemoryReporter();
final Sampler sampler = new ConstSampler(false);
return new JaegerTracer.Builder("untraced-service")
.withReporter(reporter)
.withSampler(sampler)
.build();
return io.opentracing.noop.NoopTracerFactory.create()
}
}

Expand Down

0 comments on commit 5810ab8

Please sign in to comment.