Class OpenTelemetryTracingConfig.BuilderBase<BUILDER extends OpenTelemetryTracingConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OpenTelemetryTracingConfig>

java.lang.Object
io.helidon.telemetry.otelconfig.OpenTelemetryTracingConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
OpenTelemetryTracingConfig.Builder
Enclosing interface:
OpenTelemetryTracingConfig

public abstract static class OpenTelemetryTracingConfig.BuilderBase<BUILDER extends OpenTelemetryTracingConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OpenTelemetryTracingConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for OpenTelemetryTracingConfig.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(OpenTelemetryTracingConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      public BUILDER from(OpenTelemetryTracingConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      @Deprecated public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OpenTelemetryTracingConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OpenTelemetryTracingConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OpenTelemetryTracingConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OpenTelemetryTracingConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearSampler

      public BUILDER clearSampler()
      Clear existing value of sampler.
      Returns:
      updated builder instance
      See Also:
    • sampler

      public BUILDER sampler(io.opentelemetry.sdk.trace.samplers.Sampler sampler)
      Tracing sampler.
      Parameters:
      sampler - tracing sampler
      Returns:
      updated builder instance
      See Also:
    • clearSpanLimits

      public BUILDER clearSpanLimits()
      Clear existing value of spanLimits.
      Returns:
      updated builder instance
      See Also:
    • spanLimits

      public BUILDER spanLimits(io.opentelemetry.sdk.trace.SpanLimits spanLimits)
      Tracing span limits.
      Parameters:
      spanLimits - tracing span limits
      Returns:
      updated builder instance
      See Also:
    • spanLimits

      public BUILDER spanLimits(Consumer<io.opentelemetry.sdk.trace.SpanLimitsBuilder> consumer)
      Tracing span limits.
      Parameters:
      consumer - consumer of builder of tracing span limits
      Returns:
      updated builder instance
      See Also:
    • spanLimits

      public BUILDER spanLimits(Supplier<? extends io.opentelemetry.sdk.trace.SpanLimits> supplier)
      Tracing span limits.
      Parameters:
      supplier - supplier of tracing span limits
      Returns:
      updated builder instance
      See Also:
    • clearProcessors

      public BUILDER clearProcessors()
      Clear all processors.
      Returns:
      updated builder instance
      See Also:
    • processors

      public BUILDER processors(List<? extends io.opentelemetry.sdk.trace.SpanProcessor> processors)
      Constructed span processors.
      Parameters:
      processors - span processors
      Returns:
      updated builder instance
      See Also:
    • addProcessors

      public BUILDER addProcessors(List<? extends io.opentelemetry.sdk.trace.SpanProcessor> processors)
      Constructed span processors.
      Parameters:
      processors - span processors
      Returns:
      updated builder instance
      See Also:
    • addProcessor

      public BUILDER addProcessor(io.opentelemetry.sdk.trace.SpanProcessor processor)
      Constructed span processors.
      Parameters:
      processor - add single span processors
      Returns:
      updated builder instance
      See Also:
    • clearAttributes

      public BUILDER clearAttributes()
      Clear existing value of attributes.
      Returns:
      updated builder instance
      See Also:
    • attributes

      public BUILDER attributes(io.opentelemetry.api.common.AttributesBuilder attributes)
      Name/value pairs passed to OpenTelemetry.
      Parameters:
      attributes - typed attribute settings
      Returns:
      updated builder instance
      See Also:
    • sampler

      public Optional<io.opentelemetry.sdk.trace.samplers.Sampler> sampler()
      Tracing sampler.
      Returns:
      tracing sampler
    • spanLimits

      public Optional<io.opentelemetry.sdk.trace.SpanLimits> spanLimits()
      Tracing span limits.
      Returns:
      tracing span limits
    • processors

      public List<io.opentelemetry.sdk.trace.SpanProcessor> processors()
      Constructed span processors.
      Returns:
      span processors
    • attributes

      public Optional<io.opentelemetry.api.common.AttributesBuilder> attributes()
      Name/value pairs passed to OpenTelemetry.
      Returns:
      typed attribute settings
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance