From 5810ab87dc88facbc0a5e97452b6c33b093d3082 Mon Sep 17 00:00:00 2001 From: Gerlo Hesselink Date: Fri, 28 Feb 2020 07:29:14 +0100 Subject: [PATCH] propose NoopTracer for disabling tracer. (#82) --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 98ac0c8..01ef48f 100644 --- a/README.md +++ b/README.md @@ -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() } }