Package io.helidon.telemetry.otelconfig
Class ViewRegistrationConfig.BuilderBase<BUILDER extends ViewRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ViewRegistrationConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.ViewRegistrationConfig.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:
ViewRegistrationConfig.Builder
- Enclosing interface:
ViewRegistrationConfig
public abstract static class ViewRegistrationConfig.BuilderBase<BUILDER extends ViewRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ViewRegistrationConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ViewRegistrationConfig.-
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 TypeMethodDescriptionOptional<io.opentelemetry.sdk.metrics.Aggregation> Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.aggregation(io.opentelemetry.sdk.metrics.Aggregation aggregation) Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.Attribute name filter, configurable as a string compiled as a regular expression usingPattern.attributeFilter(Predicate<String> attributeFilter) Attribute name filter, configurable as a string compiled as a regular expression usingPattern.Cardinality limit.cardinalityLimit(int cardinalityLimit) Cardinality limit.Clear existing value of attributeFilter.Clear existing value of cardinalityLimit.Clear existing value of description.Clear existing value of name.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).Metric view description.description(String description) Metric view description.from(ViewRegistrationConfig prototype) Update this builder from an existing prototype instance.from(ViewRegistrationConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Optional<io.opentelemetry.sdk.metrics.InstrumentSelector> Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(io.opentelemetry.sdk.metrics.InstrumentSelector instrumentSelector) Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(Consumer<io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder> consumer) Instrument selector, configurable usingInstrumentSelectorConfig.instrumentSelector(Supplier<? extends io.opentelemetry.sdk.metrics.InstrumentSelector> supplier) Instrument selector, configurable usingInstrumentSelectorConfig.name()Metrics view name.Metrics view name.protected voidHandles providers and decorators.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 ViewRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ViewRegistrationConfig> - 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 ViewRegistrationConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ViewRegistrationConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearName
Clear existing value of name.- Returns:
- updated builder instance
- See Also:
-
name
Metrics view name.- Parameters:
name- metric view name- Returns:
- updated builder instance
- See Also:
-
clearDescription
Clear existing value of description.- Returns:
- updated builder instance
- See Also:
-
description
Metric view description.- Parameters:
description- metric view description- Returns:
- updated builder instance
- See Also:
-
aggregation
Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.- Parameters:
aggregation- aggregation for the metric view- Returns:
- updated builder instance
- See Also:
-
clearAttributeFilter
Clear existing value of attributeFilter.- Returns:
- updated builder instance
- See Also:
-
attributeFilter
Attribute name filter, configurable as a string compiled as a regular expression usingPattern.- Parameters:
attributeFilter- attribute name filter- Returns:
- updated builder instance
- See Also:
-
instrumentSelector
public BUILDER instrumentSelector(io.opentelemetry.sdk.metrics.InstrumentSelector instrumentSelector) Instrument selector, configurable usingInstrumentSelectorConfig.- Parameters:
instrumentSelector- instrument selector- Returns:
- updated builder instance
- See Also:
-
instrumentSelector
public BUILDER instrumentSelector(Consumer<io.opentelemetry.sdk.metrics.InstrumentSelectorBuilder> consumer) Instrument selector, configurable usingInstrumentSelectorConfig.- Parameters:
consumer- consumer of builder of instrument selector- Returns:
- updated builder instance
- See Also:
-
instrumentSelector
public BUILDER instrumentSelector(Supplier<? extends io.opentelemetry.sdk.metrics.InstrumentSelector> supplier) Instrument selector, configurable usingInstrumentSelectorConfig.- Parameters:
supplier- supplier of instrument selector- Returns:
- updated builder instance
- See Also:
-
clearCardinalityLimit
Clear existing value of cardinalityLimit.- Returns:
- updated builder instance
- See Also:
-
cardinalityLimit
Cardinality limit.- Parameters:
cardinalityLimit- cardinality limit- Returns:
- updated builder instance
- See Also:
-
name
Metrics view name.- Returns:
- metric view name
-
description
Metric view description.- Returns:
- metric view description
-
aggregation
Aggregation for the metric view, configurable as anAggregationType:DROP, DEFAULT, SUM, LAST_VALUE, EXPLICIT_BUCKET_HISTOGRAM, BASE2_EXPONENTIAL_BUCKET_HISTOGRAM.- Returns:
- aggregation for the metric view
-
attributeFilter
Attribute name filter, configurable as a string compiled as a regular expression usingPattern.- Returns:
- attribute name filter
-
instrumentSelector
Instrument selector, configurable usingInstrumentSelectorConfig.- Returns:
- instrument selector
-
cardinalityLimit
Cardinality limit.- Returns:
- cardinality limit
-
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)