Class OpenTelemetryResourceConfig.Builder
java.lang.Object
io.helidon.telemetry.otelconfig.OpenTelemetryResourceConfig.BuilderBase<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>
io.helidon.telemetry.otelconfig.OpenTelemetryResourceConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>, Builder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>, ConfigBuilderSupport.ConfiguredBuilder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>, Supplier<OpenTelemetryResourceConfig>
- Enclosing interface:
OpenTelemetryResourceConfig
public static class OpenTelemetryResourceConfig.Builder
extends OpenTelemetryResourceConfig.BuilderBase<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>
implements Builder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>
Fluent API builder for
OpenTelemetryResourceConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class OpenTelemetryResourceConfig.BuilderBase
OpenTelemetryResourceConfig.BuilderBase.OpenTelemetryResourceConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class OpenTelemetryResourceConfig.BuilderBase
addContainerImageRepoDigest, addContainerImageRepoDigests, addContainerImageTag, addContainerImageTags, attributes, attributes, clearAttributes, clearContainerId, clearContainerImageName, clearContainerImageRepoDigests, clearContainerImageTags, clearDeploymentEnvironmentName, clearServiceInstanceId, clearServiceNamespace, config, config, containerId, containerId, containerImageName, containerImageName, containerImageRepoDigests, containerImageRepoDigests, containerImageTags, containerImageTags, deploymentEnvironmentName, deploymentEnvironmentName, from, from, preBuildPrototype, serviceInstanceId, serviceInstanceId, serviceNamespace, serviceNamespace, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OpenTelemetryResourceConfigget()identity()Instance of this builder as the correct type.update(Consumer<OpenTelemetryResourceConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<OpenTelemetryResourceConfig.Builder, OpenTelemetryResourceConfig>- Returns:
- instance of the built type
-