java.lang.Object
io.helidon.grpc.client.ClientTracingInterceptor.Builder
- Enclosing class:
- ClientTracingInterceptor
Builds the configuration of a ClientTracingInterceptor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withOperationName
(GrpcTracingName operationNameConstructor) Logs streaming events to client spans.withTracedAttributes
(ClientRequestAttribute... tracedAttributes) Logs all request life-cycle events to client spans.
-
Constructor Details
-
Builder
- Parameters:
tracer
- to use for this intercepter Creates a Builder with default configuration
-
-
Method Details
-
withOperationName
- Parameters:
operationNameConstructor
- to name all spans created by this intercepter- Returns:
- this Builder with configured operation name
-
withStreaming
Logs streaming events to client spans.- Returns:
- this Builder configured to log streaming events
-
withTracedAttributes
public 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
-
withVerbosity
Logs all request life-cycle events to client spans.- Returns:
- this Builder configured to be verbose
-
build
- Returns:
- a ClientTracingInterceptor with this Builder's configuration
-