add ContextManager.isActive() (#1070)
This commit is contained in:
parent
564239f1a2
commit
5ea5471c96
|
|
@ -200,4 +200,8 @@ public class ContextManager implements TracingContextListener, BootService, Igno
|
|||
public void afterFinished(IgnoredTracerContext traceSegment) {
|
||||
CONTEXT.remove();
|
||||
}
|
||||
|
||||
public static boolean isActive() {
|
||||
return CONTEXT.get() != null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue