Class GrpcTracingConfig.Builder

  • Enclosing class:
    GrpcTracingConfig

    public static class GrpcTracingConfig.Builder
    extends Object
    Builds the configuration of a tracer.
    • 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