public static class TracingClientInterceptor.Builder extends Object
public TracingClientInterceptor.Builder withTracer(io.opentracing.Tracer tracer)
Tracer
.tracer
- the tracerpublic TracingClientInterceptor.Builder withOperationName(OperationNameConstructor operationNameConstructor)
operationNameConstructor
- to name all spans created by this interceptorpublic TracingClientInterceptor.Builder withStreaming()
public TracingClientInterceptor.Builder withTracedAttributes(TracingClientInterceptor.ClientRequestAttribute... tracedAttributes)
tracedAttributes
- to set as tags on client spans created by this interceptorpublic TracingClientInterceptor.Builder withVerbosity()
public TracingClientInterceptor.Builder withActiveSpanSource(ActiveSpanSource activeSpanSource)
activeSpanSource
- that provides a method of getting the active span before the client
callpublic TracingClientInterceptor.Builder withActiveSpanContextSource(ActiveSpanContextSource activeSpanContextSource)
activeSpanContextSource
- that provides a method of getting the active span context
before the client callpublic TracingClientInterceptor.Builder withClientSpanDecorator(ClientSpanDecorator clientSpanDecorator)
clientSpanDecorator
- used to decorate the client spanpublic TracingClientInterceptor.Builder withClientCloseDecorator(ClientCloseDecorator clientCloseDecorator)
clientCloseDecorator
- used to decorate the client span when the call is closedpublic TracingClientInterceptor build()
Copyright © 2017-2020–2020. All rights reserved.