Class TraceUtils


  • public class TraceUtils
    extends Object
    Utilities for distributed tracing.
    • Field Detail

      • DEFAULT_IS_RECORDING

        public static final Predicate<io.opentracing.Span> DEFAULT_IS_RECORDING
      • IS_RECORDING

        public static Predicate<io.opentracing.Span> IS_RECORDING
        this should only be changed in the context of testing, otherwise it would risk not recording trace data.
    • Constructor Detail

      • TraceUtils

        public TraceUtils()
    • Method Detail

      • ifNotNoop

        public static void ifNotNoop​(io.opentracing.Span span,
                                     Consumer<io.opentracing.Span> consumer)