Package io.helidon.grpc.server
Class GrpcTracingConfig.Builder
- java.lang.Object
-
- io.helidon.grpc.server.GrpcTracingConfig.Builder
-
- Enclosing class:
- GrpcTracingConfig
public static class GrpcTracingConfig.Builder extends Object
Builds the configuration of a tracer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcTracingConfig
build()
GrpcTracingConfig.Builder
withOperationName(io.opentracing.contrib.grpc.OperationNameConstructor operationNameConstructor)
GrpcTracingConfig.Builder
withStreaming()
Logs streaming events to server spans.GrpcTracingConfig.Builder
withTracedAttributes(ServerRequestAttribute... attributes)
GrpcTracingConfig.Builder
withVerbosity()
Logs all request life-cycle events to server spans.
-
-
-
Method Detail
-
withOperationName
public GrpcTracingConfig.Builder withOperationName(io.opentracing.contrib.grpc.OperationNameConstructor operationNameConstructor)
- Parameters:
operationNameConstructor
- for all spans- Returns:
- this Builder with configured operation name
-
withTracedAttributes
public GrpcTracingConfig.Builder withTracedAttributes(ServerRequestAttribute... attributes)
- Parameters:
attributes
- to set as tags on server spans- Returns:
- this Builder configured to trace request attributes
-
withStreaming
public GrpcTracingConfig.Builder withStreaming()
Logs streaming events to server spans.- Returns:
- this Builder configured to log streaming events
-
withVerbosity
public GrpcTracingConfig.Builder withVerbosity()
Logs all request life-cycle events to server spans.- Returns:
- this Builder configured to be verbose
-
build
public GrpcTracingConfig build()
- Returns:
- a GrpcTracingConfig with this Builder's configuration
-
-