Module lettuce.core

Class BraveTracing.Builder

java.lang.Object
io.lettuce.core.tracing.BraveTracing.Builder
Enclosing class:
BraveTracing

public static class BraveTracing.Builder
extends Object
Builder for BraveTracing.
Since:
5.2
  • Method Details

    • tracing

      public BraveTracing.Builder tracing​(brave.Tracing tracing)
      Sets the Tracing.
      Parameters:
      tracing - the Brave Tracing object, must not be null.
      Returns:
      this BraveTracing.Builder.
    • serviceName

      public BraveTracing.Builder serviceName​(String serviceName)
      Sets the name used in the Endpoint.
      Parameters:
      serviceName - the name for the Endpoint, must not be null.
      Returns:
      this BraveTracing.Builder.
    • excludeCommandArgsFromSpanTags

      public BraveTracing.Builder excludeCommandArgsFromSpanTags()
      Excludes command arguments from Span tags. Enabled by default.
      Returns:
      this BraveTracing.Builder.
    • includeCommandArgsInSpanTags

      public BraveTracing.Builder includeCommandArgsInSpanTags​(boolean includeCommandArgsInSpanTags)
      Controls the inclusion of command arguments in Span tags. Enabled by default.
      Parameters:
      includeCommandArgsInSpanTags - the flag to enable or disable the inclusion of command args in Span tags.
      Returns:
      this BraveTracing.Builder.
    • endpointCustomizer

      public BraveTracing.Builder endpointCustomizer​(Consumer<zipkin2.Endpoint.Builder> endpointCustomizer)
      Sets an Endpoint customizer to customize the Endpoint through its Endpoint.Builder. The customizer is invoked before building the endpoint.
      Parameters:
      endpointCustomizer - must not be null.
      Returns:
      this BraveTracing.Builder.
    • spanCustomizer

      public BraveTracing.Builder spanCustomizer​(Consumer<brave.Span> spanCustomizer)
      Sets an Span customizer to customize the Span. The customizer is invoked before Span.finish() finishing} the span.
      Parameters:
      spanCustomizer - must not be null.
      Returns:
      this BraveTracing.Builder.
    • spanCustomizer

      public BraveTracing.Builder spanCustomizer​(BiConsumer<RedisCommand<Object,​Object,​Object>,​brave.Span> spanCustomizer)
      Sets an Span customizer to customize the Span based on the underlying RedisCommand. The customizer is invoked before Span.finish() finishing} the span.
      Parameters:
      spanCustomizer - must not be null.
      Returns:
      this BraveTracing.Builder.
      Since:
      6.0
    • build

      public BraveTracing build()
      Returns:
      a new instance of BraveTracing