Class OpenTracingUtil

java.lang.Object
io.vertx.tracing.opentracing.OpenTracingUtil

public final class OpenTracingUtil extends Object
OpenTracingContext adds helpers for associating and disassociating spans with the current Context
  • Constructor Details

    • OpenTracingUtil

      public OpenTracingUtil()
  • Method Details

    • getSpan

      public static io.opentracing.Span getSpan()
      Get the active span from the current Context
      Returns:
      a Span or 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.