Class OpenTracingOptions.Builder
java.lang.Object
io.temporal.opentracing.OpenTracingOptions.Builder
- Enclosing class:
OpenTracingOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setIsErrorPredicate(Predicate<Throwable> isErrorPredicate) setSpanBuilderProvider(SpanBuilderProvider spanBuilderProvider) setSpanContextCodec(OpenTracingSpanContextCodec spanContextCodec) setTracer(io.opentracing.Tracer tracer)
-
Method Details
-
setTracer
-
setSpanBuilderProvider
public OpenTracingOptions.Builder setSpanBuilderProvider(@Nonnull SpanBuilderProvider spanBuilderProvider) - Parameters:
spanBuilderProvider- customSpanBuilderProvider, allows for more control over how OpenTracing spans are created, named, and tagged.- Returns:
- this
-
setSpanContextCodec
public OpenTracingOptions.Builder setSpanContextCodec(@Nonnull OpenTracingSpanContextCodec spanContextCodec) - Parameters:
spanContextCodec- customOpenTracingSpanContextCodec, allows for more control over how SpanContext is encoded and decoded from Map- Returns:
- this
-
setIsErrorPredicate
public OpenTracingOptions.Builder setIsErrorPredicate(@Nonnull Predicate<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:
-
build
-