Class OpenTracingUtil


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

      • OpenTracingUtil

        public OpenTracingUtil()
    • Method Detail

      • 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.