Package io.appform.core.hystrix
Class TracingHandler
java.lang.Object
io.appform.core.hystrix.TracingHandler
Utility class that handles all tracing related operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentracing.ScopeactivateSpan(io.opentracing.Tracer tracer, io.opentracing.Span span) static voidcloseScopeAndSpan(io.opentracing.Span span, io.opentracing.Scope scope) static io.opentracing.SpangetParentActiveSpan(io.opentracing.Tracer tracer) static io.opentracing.Tracerstatic io.opentracing.SpanstartChildSpan(io.opentracing.Tracer tracer, io.opentracing.Span parentSpan, String command)
-
Constructor Details
-
TracingHandler
public TracingHandler()
-
-
Method Details
-
getTracer
public static io.opentracing.Tracer getTracer() -
getParentActiveSpan
public static io.opentracing.Span getParentActiveSpan(io.opentracing.Tracer tracer) -
startChildSpan
public static io.opentracing.Span startChildSpan(io.opentracing.Tracer tracer, io.opentracing.Span parentSpan, String command) -
activateSpan
public static io.opentracing.Scope activateSpan(io.opentracing.Tracer tracer, io.opentracing.Span span) -
closeScopeAndSpan
public static void closeScopeAndSpan(io.opentracing.Span span, io.opentracing.Scope scope)
-