Package io.helidon.telemetry.otelconfig
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 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:
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProcessor(io.opentelemetry.sdk.trace.SpanProcessor processor) Constructed span processors.addProcessors(List<? extends io.opentelemetry.sdk.trace.SpanProcessor> processors) Constructed span processors.Optional<io.opentelemetry.api.common.AttributesBuilder> Name/value pairs passed to OpenTelemetry.attributes(io.opentelemetry.api.common.AttributesBuilder attributes) Name/value pairs passed to OpenTelemetry.Clear existing value of attributes.Clear all processors.Clear existing value of sampler.Clear existing value of spanLimits.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).from(OpenTelemetryTracingConfig prototype) Update this builder from an existing prototype instance.from(OpenTelemetryTracingConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.List<io.opentelemetry.sdk.trace.SpanProcessor> Constructed span processors.processors(List<? extends io.opentelemetry.sdk.trace.SpanProcessor> processors) Constructed span processors.Optional<io.opentelemetry.sdk.trace.samplers.Sampler> sampler()Tracing sampler.sampler(io.opentelemetry.sdk.trace.samplers.Sampler sampler) Tracing sampler.Optional<io.opentelemetry.sdk.trace.SpanLimits> Tracing span limits.spanLimits(io.opentelemetry.sdk.trace.SpanLimits spanLimits) Tracing span limits.spanLimits(Consumer<io.opentelemetry.sdk.trace.SpanLimitsBuilder> consumer) Tracing span limits.spanLimits(Supplier<? extends io.opentelemetry.sdk.trace.SpanLimits> supplier) Tracing span limits.toString()protected voidValidates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
configin interfaceConfigBuilderSupport.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
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.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
Clear existing value of sampler.- Returns:
- updated builder instance
- See Also:
-
sampler
Tracing sampler.- Parameters:
sampler- tracing sampler- Returns:
- updated builder instance
- See Also:
-
clearSpanLimits
Clear existing value of spanLimits.- Returns:
- updated builder instance
- See Also:
-
spanLimits
Tracing span limits.- Parameters:
spanLimits- tracing span limits- Returns:
- updated builder instance
- See Also:
-
spanLimits
Tracing span limits.- Parameters:
consumer- consumer of builder of tracing span limits- Returns:
- updated builder instance
- See Also:
-
spanLimits
Tracing span limits.- Parameters:
supplier- supplier of tracing span limits- Returns:
- updated builder instance
- See Also:
-
clearProcessors
Clear all processors.- Returns:
- updated builder instance
- See Also:
-
processors
Constructed span processors.- Parameters:
processors- span processors- Returns:
- updated builder instance
- See Also:
-
addProcessors
Constructed span processors.- Parameters:
processors- span processors- Returns:
- updated builder instance
- See Also:
-
addProcessor
Constructed span processors.- Parameters:
processor- add single span processors- Returns:
- updated builder instance
- See Also:
-
clearAttributes
Clear existing value of attributes.- Returns:
- updated builder instance
- See Also:
-
attributes
Name/value pairs passed to OpenTelemetry.- Parameters:
attributes- typed attribute settings- Returns:
- updated builder instance
- See Also:
-
sampler
Tracing sampler.- Returns:
- tracing sampler
-
spanLimits
Tracing span limits.- Returns:
- tracing span limits
-
processors
Constructed span processors.- Returns:
- span processors
-
attributes
Name/value pairs passed to OpenTelemetry.- Returns:
- typed attribute settings
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)