Class SpanTracingConfig.Builder

java.lang.Object
io.helidon.tracing.config.SpanTracingConfig.Builder
All Implemented Interfaces:
Builder<SpanTracingConfig.Builder,SpanTracingConfig>, Supplier<SpanTracingConfig>
Enclosing class:
SpanTracingConfig

public static final class SpanTracingConfig.Builder extends Object implements Builder<SpanTracingConfig.Builder,SpanTracingConfig>
A fluent API builder for SpanTracingConfig.
  • Method Details

    • build

      public SpanTracingConfig build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<SpanTracingConfig.Builder,SpanTracingConfig>
      Returns:
      instance of the built type
    • enabled

      public SpanTracingConfig.Builder enabled(boolean enabled)
      Configure whether this traced span is enabled or disabled.
      Parameters:
      enabled - if disabled, this span and all logs will be disabled
      Returns:
      updated builder instance
    • newName

      public SpanTracingConfig.Builder newName(String newName)
      Configure a new name of this span.
      Parameters:
      newName - new name to use when reporting this span
      Returns:
      updated builder instance
    • addSpanLog

      public SpanTracingConfig.Builder addSpanLog(SpanLogTracingConfig spanLogTracingConfig)
      Add configuration of a traced span log.
      Parameters:
      spanLogTracingConfig - configuration of the traced span log
      Returns:
      updated builder instance
    • config

      public SpanTracingConfig.Builder config(Config config)
      Update this builder from Config.
      Parameters:
      config - configuration of this span
      Returns:
      updated builder instance