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

java.lang.Object
io.helidon.telemetry.otelconfig.ZipkinExporterConfig.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:
ZipkinExporterConfig.Builder
Enclosing interface:
ZipkinExporterConfig

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

    • BuilderBase

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

    • from

      public BUILDER from(ZipkinExporterConfig 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(ZipkinExporterConfig.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 ZipkinExporterConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ZipkinExporterConfig>
      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 ZipkinExporterConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ZipkinExporterConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearEndpoint

      public BUILDER clearEndpoint()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • endpoint

      public BUILDER endpoint(URI endpoint)
      Collector endpoint to which this exporter should transmit.
      Parameters:
      endpoint - collector endpoint
      Returns:
      updated builder instance
      See Also:
    • clearEncoder

      public BUILDER clearEncoder()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • encoder

      public BUILDER encoder(zipkin2.codec.SpanBytesEncoder encoder)
      Encoder type.
      Parameters:
      encoder - encoder type.
      Returns:
      updated builder instance
      See Also:
    • clearCompression

      public BUILDER clearCompression()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • compression

      public BUILDER compression(CompressionType compression)
      Compression type.
      Parameters:
      compression - compression type
      Returns:
      updated builder instance
      See Also:
    • clearTimeout

      public BUILDER clearTimeout()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • timeout

      public BUILDER timeout(Duration timeout)
      Exporter timeout.
      Parameters:
      timeout - exporter timeout
      Returns:
      updated builder instance
      See Also:
    • clearSender

      public BUILDER clearSender()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • sender

      public BUILDER sender(Sender sender)
      Zipkin sender.
      Parameters:
      sender - Zipkin sender
      Returns:
      updated builder instance
      See Also:
    • clearLocalIpAddressSupplier

      public BUILDER clearLocalIpAddressSupplier()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • localIpAddressSupplier

      public BUILDER localIpAddressSupplier(Supplier<InetAddress> localIpAddressSupplier)
      Supplier of a local IP address.
      Parameters:
      localIpAddressSupplier - supplier of a local IP address
      Returns:
      updated builder instance
      See Also:
    • clearMeterProvider

      public BUILDER clearMeterProvider()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • meterProvider

      public BUILDER meterProvider(io.opentelemetry.api.metrics.MeterProvider meterProvider)
      Meter provider.
      Parameters:
      meterProvider - meter provider
      Returns:
      updated builder instance
      See Also:
    • endpoint

      public Optional<URI> endpoint()
      Collector endpoint to which this exporter should transmit.
      Returns:
      the endpoint
    • encoder

      public Optional<zipkin2.codec.SpanBytesEncoder> encoder()
      Encoder type.
      Returns:
      the encoder
    • compression

      public Optional<CompressionType> compression()
      Compression type.
      Returns:
      the compression
    • timeout

      public Optional<Duration> timeout()
      Exporter timeout.
      Returns:
      the timeout
    • sender

      public Optional<Sender> sender()
      Zipkin sender.
      Returns:
      the sender
    • localIpAddressSupplier

      public Optional<Supplier<InetAddress>> localIpAddressSupplier()
      Supplier of a local IP address.
      Returns:
      the local ip address supplier
    • meterProvider

      public Optional<io.opentelemetry.api.metrics.MeterProvider> meterProvider()
      Meter provider.
      Returns:
      the meter provider
    • config

      public Optional<Config> config()
      If this instance was configured, this would be the config instance used.
      Returns:
      config node used to configure this builder, or empty if not configured
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.