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 Details

    • withOperationName

      public GrpcTracingConfig.Builder withOperationName(GrpcTracingName 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