Package io.vertx.tracing.opentracing
Class OpenTracingUtil
- java.lang.Object
-
- io.vertx.tracing.opentracing.OpenTracingUtil
-
-
Constructor Summary
Constructors Constructor Description OpenTracingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearContext()Remove any active span on the context.static io.opentracing.SpangetSpan()Get the active span from the currentContextstatic voidsetSpan(io.opentracing.Span span)Set the span as active on the context.
-
-
-
Method Detail
-
getSpan
public static io.opentracing.Span getSpan()
Get the active span from the currentContext- Returns:
- a
Spanor null
-
setSpan
public static void setSpan(io.opentracing.Span span)
Set the span as active on the context.- Parameters:
span- the span to associate with the context.
-
clearContext
public static void clearContext()
Remove any active span on the context.
-
-