Class OpenTelemetryResourceConfig.BuilderBase<BUILDER extends OpenTelemetryResourceConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryResourceConfig>
java.lang.Object
io.helidon.telemetry.otelconfig.OpenTelemetryResourceConfig.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>
- Direct Known Subclasses:
OpenTelemetryResourceConfig.Builder
- Enclosing interface:
OpenTelemetryResourceConfig
public abstract static class OpenTelemetryResourceConfig.BuilderBase<BUILDER extends OpenTelemetryResourceConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryResourceConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
OpenTelemetryResourceConfig.-
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 TypeMethodDescriptionaddContainerImageRepoDigest(String containerImageRepoDigest) Repository digests of the container image as reported by the container runtime.addContainerImageRepoDigests(List<String> containerImageRepoDigests) Repository digests of the container image as reported by the container runtime.addContainerImageTag(String containerImageTag) Tags of the container image on which the container was built.addContainerImageTags(List<String> containerImageTags) Tags of the container image on which the container was built.Optional<io.opentelemetry.api.common.AttributesBuilder> Additional resource attributes shared by all configured signals.attributes(io.opentelemetry.api.common.AttributesBuilder attributes) Additional resource attributes shared by all configured signals.Clear existing value of attributes.Clear existing value of containerId.Clear existing value of containerImageName.Clear all containerImageRepoDigests.Clear all containerImageTags.Clear existing value of deploymentEnvironmentName.Clear existing value of serviceInstanceId.Clear existing value of serviceNamespace.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Identifier of the container in which the service instance is running.containerId(String containerId) Identifier of the container in which the service instance is running.Name of the container image on which the container was built.containerImageName(String containerImageName) Name of the container image on which the container was built.Repository digests of the container image as reported by the container runtime.containerImageRepoDigests(List<String> containerImageRepoDigests) Repository digests of the container image as reported by the container runtime.Tags of the container image on which the container was built.containerImageTags(List<String> containerImageTags) Tags of the container image on which the container was built.Name of the deployment environment.deploymentEnvironmentName(String deploymentEnvironmentName) Name of the deployment environment.from(OpenTelemetryResourceConfig prototype) Update this builder from an existing prototype instance.from(OpenTelemetryResourceConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.Identifier for this service instance.serviceInstanceId(String serviceInstanceId) Identifier for this service instance.Namespace for the service.serviceNamespace(String serviceNamespace) Namespace for the service.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
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 OpenTelemetryResourceConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends OpenTelemetryResourceConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
clearServiceNamespace
Clear existing value of serviceNamespace.- Returns:
- updated builder instance
- See Also:
-
serviceNamespace
-
clearServiceInstanceId
Clear existing value of serviceInstanceId.- Returns:
- updated builder instance
- See Also:
-
serviceInstanceId
-
clearDeploymentEnvironmentName
Clear existing value of deploymentEnvironmentName.- Returns:
- updated builder instance
- See Also:
-
deploymentEnvironmentName
-
clearContainerId
Clear existing value of containerId.- Returns:
- updated builder instance
- See Also:
-
containerId
-
clearContainerImageName
Clear existing value of containerImageName.- Returns:
- updated builder instance
- See Also:
-
containerImageName
-
clearContainerImageTags
Clear all containerImageTags.- Returns:
- updated builder instance
- See Also:
-
containerImageTags
-
addContainerImageTags
-
addContainerImageTag
-
clearContainerImageRepoDigests
Clear all containerImageRepoDigests.- Returns:
- updated builder instance
- See Also:
-
containerImageRepoDigests
-
addContainerImageRepoDigests
-
addContainerImageRepoDigest
-
clearAttributes
Clear existing value of attributes.- Returns:
- updated builder instance
- See Also:
-
attributes
Additional resource attributes shared by all configured signals.- Parameters:
attributes- additional resource attributes- Returns:
- updated builder instance
- See Also:
-
serviceNamespace
-
serviceInstanceId
-
deploymentEnvironmentName
-
containerId
-
containerImageName
-
containerImageTags
-
containerImageRepoDigests
-
attributes
Additional resource attributes shared by all configured signals.- Returns:
- additional resource attributes
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-