- java.lang.Object
- 
- io.helidon.grpc.client.ClientTracingInterceptor.Builder
 
- 
- Enclosing class:
- ClientTracingInterceptor
 
 public static class ClientTracingInterceptor.Builder extends Object Builds the configuration of a ClientTracingInterceptor.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientTracingInterceptorbuild()ClientTracingInterceptor.BuilderwithActiveSpanSource(io.opentracing.contrib.grpc.ActiveSpanSource activeSpanSource)ClientTracingInterceptor.BuilderwithOperationName(io.opentracing.contrib.grpc.OperationNameConstructor operationNameConstructor)ClientTracingInterceptor.BuilderwithStreaming()Logs streaming events to client spans.ClientTracingInterceptor.BuilderwithTracedAttributes(ClientRequestAttribute... tracedAttributes)ClientTracingInterceptor.BuilderwithVerbosity()Logs all request life-cycle events to client spans.
 
- 
- 
- 
Constructor Detail- 
Builderpublic Builder(Tracer tracer) - Parameters:
- tracer- to use for this intercepter Creates a Builder with default configuration
 
 
- 
 - 
Method Detail- 
withOperationNamepublic ClientTracingInterceptor.Builder withOperationName(io.opentracing.contrib.grpc.OperationNameConstructor operationNameConstructor) - Parameters:
- operationNameConstructor- to name all spans created by this intercepter
- Returns:
- this Builder with configured operation name
 
 - 
withStreamingpublic ClientTracingInterceptor.Builder withStreaming() Logs streaming events to client spans.- Returns:
- this Builder configured to log streaming events
 
 - 
withTracedAttributespublic ClientTracingInterceptor.Builder withTracedAttributes(ClientRequestAttribute... tracedAttributes) - Parameters:
- tracedAttributes- to set as tags on client spans created by this intercepter
- Returns:
- this Builder configured to trace attributes
 
 - 
withVerbositypublic ClientTracingInterceptor.Builder withVerbosity() Logs all request life-cycle events to client spans.- Returns:
- this Builder configured to be verbose
 
 - 
withActiveSpanSourcepublic ClientTracingInterceptor.Builder withActiveSpanSource(io.opentracing.contrib.grpc.ActiveSpanSource activeSpanSource) - Parameters:
- activeSpanSource- that provides a method of getting the active span before the client call
- Returns:
- this Builder configured to start client span as children of the span returned by activeSpanSource.getActiveSpan()
 
 - 
buildpublic ClientTracingInterceptor build() - Returns:
- a ClientTracingInterceptor with this Builder's configuration
 
 
- 
 
-