Class OpenTracingOptions.Builder

  • Enclosing class:
    OpenTracingOptions

    public static final class OpenTracingOptions.Builder
    extends java.lang.Object
    • Method Detail

      • setIsErrorPredicate

        public OpenTracingOptions.Builder setIsErrorPredicate​(@Nonnull
                                                              java.util.function.Predicate<java.lang.Throwable> isErrorPredicate)
        Parameters:
        isErrorPredicate - indicates whether the received exception should cause the OpenTracing span to finish in an error state or not. All exceptions will be logged to the span regardless, in order to provide a complete picture of the execution outcome. The "error" tag on the span will be set according to the value returned by this Predicate. By default, all exceptions will be considered errors.
        Returns:
        this
        See Also:
        OpenTracing Documentation regarding error spans and logging exceptions.