From be3f110f08ba0bffdd3d053469e731202eb107b7 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Fri, 12 Aug 2016 18:01:33 -0400 Subject: [PATCH] Expose public singleton instance of NoopTracer (#39) --- opentracing-impl/src/main/java/io/opentracing/NoopTracer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opentracing-impl/src/main/java/io/opentracing/NoopTracer.java b/opentracing-impl/src/main/java/io/opentracing/NoopTracer.java index 5a95402e..d0d75457 100644 --- a/opentracing-impl/src/main/java/io/opentracing/NoopTracer.java +++ b/opentracing-impl/src/main/java/io/opentracing/NoopTracer.java @@ -17,6 +17,8 @@ public final class NoopTracer implements Tracer { + public final static NoopTracer INSTANCE = new NoopTracer(); + @Override public SpanBuilder buildSpan(String operationName) { return NoopSpanBuilder.INSTANCE;