Class TracingConfig.Builder

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

public static final class TracingConfig.Builder extends Object implements Builder<TracingConfig.Builder,TracingConfig>
Fluent API builder for TracingConfig.
  • Method Details

    • build

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

      public TracingConfig.Builder config(Config config)
      Update this builder from configuration.
      Parameters:
      config - Config with tracing configuration
      Returns:
      updated builder instance
    • addComponent

      public TracingConfig.Builder addComponent(ComponentTracingConfig component)
      Add a traced component configuration.
      Parameters:
      component - configuration of this component's tracing
      Returns:
      updated builder instance
    • enabled

      public TracingConfig.Builder enabled(boolean enabled)
      Whether overall tracing is enabled. If tracing is disabled on this level, all traced components and spans are disabled - even if explicitly configured as enabled.
      Parameters:
      enabled - set to false to disable tracing for any component and span
      Returns:
      updated builder instance