Package io.helidon.telemetry.otelconfig
Class BatchSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends BatchSpanProcessorConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.SpanProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.telemetry.otelconfig.BatchSpanProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
BatchSpanProcessorConfig.Builder
- Enclosing interface:
BatchSpanProcessorConfig
public abstract static class BatchSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends BatchSpanProcessorConfig>
extends SpanProcessorConfig.BuilderBase<BUILDER,PROTOTYPE>
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
BatchSpanProcessorConfig
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.telemetry.otelconfig.SpanProcessorConfig.BuilderBase
SpanProcessorConfig.BuilderBase.SpanProcessorConfigImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.Clear existing value of this property.Clear existing value of this property.Clear existing value of this property.config()
If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).from
(BatchSpanProcessorConfig prototype) Update this builder from an existing prototype instance.from
(BatchSpanProcessorConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Maximum number of spans batched for export together.maxExportBatchSize
(int maxExportBatchSize) Maximum number of spans batched for export together.Maximum number of spans retained before discarding excess unexported ones.maxQueueSize
(int maxQueueSize) Maximum number of spans retained before discarding excess unexported ones.protected void
Handles providers and decorators.Delay between consecutive exports.scheduleDelay
(Duration scheduleDelay) Delay between consecutive exports.timeout()
Maximum time an export can run before being cancelled.Maximum time an export can run before being cancelled.toString()
protected void
Validates required properties.Methods inherited from class io.helidon.telemetry.otelconfig.SpanProcessorConfig.BuilderBase
addExporters, exporters, exporters, from, from, type, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
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
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.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 interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig> - Overrides:
config
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
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 interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig> - Overrides:
config
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearScheduleDelay
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
scheduleDelay
Delay between consecutive exports.- Parameters:
scheduleDelay
- delay between consecutive exports- Returns:
- updated builder instance
- See Also:
-
clearMaxQueueSize
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
maxQueueSize
Maximum number of spans retained before discarding excess unexported ones.- Parameters:
maxQueueSize
- maximum number of spans kept- Returns:
- updated builder instance
- See Also:
-
clearMaxExportBatchSize
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
maxExportBatchSize
Maximum number of spans batched for export together. OpenTelemetry requires this value to not exceed themaxQueueSize()
.- Parameters:
maxExportBatchSize
- maximum number of spans batched- Returns:
- updated builder instance
- See Also:
-
clearTimeout
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
timeout
Maximum time an export can run before being cancelled.- Parameters:
timeout
- maximum export time- Returns:
- updated builder instance
- See Also:
-
scheduleDelay
Delay between consecutive exports.- Returns:
- the schedule delay
-
maxQueueSize
Maximum number of spans retained before discarding excess unexported ones.- Returns:
- the max queue size
-
maxExportBatchSize
Maximum number of spans batched for export together. OpenTelemetry requires this value to not exceed themaxQueueSize()
.- Returns:
- the max export batch size
-
timeout
Maximum time an export can run before being cancelled.- Returns:
- the timeout
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classSpanProcessorConfig.BuilderBase<BUILDER extends BatchSpanProcessorConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends BatchSpanProcessorConfig>
-
config(io.helidon.config.Config)