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 builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.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.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(OpenTelemetryResourceConfig prototype)
      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

      public BUILDER config(Config 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 interface ConfigBuilderSupport.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

      public BUILDER clearServiceNamespace()
      Clear existing value of serviceNamespace.
      Returns:
      updated builder instance
      See Also:
    • serviceNamespace

      public BUILDER serviceNamespace(String serviceNamespace)
      Namespace for the service.
      Parameters:
      serviceNamespace - service namespace
      Returns:
      updated builder instance
      See Also:
    • clearServiceInstanceId

      public BUILDER clearServiceInstanceId()
      Clear existing value of serviceInstanceId.
      Returns:
      updated builder instance
      See Also:
    • serviceInstanceId

      public BUILDER serviceInstanceId(String serviceInstanceId)
      Identifier for this service instance.
      Parameters:
      serviceInstanceId - service instance ID
      Returns:
      updated builder instance
      See Also:
    • clearDeploymentEnvironmentName

      public BUILDER clearDeploymentEnvironmentName()
      Clear existing value of deploymentEnvironmentName.
      Returns:
      updated builder instance
      See Also:
    • deploymentEnvironmentName

      public BUILDER deploymentEnvironmentName(String deploymentEnvironmentName)
      Name of the deployment environment.
      Parameters:
      deploymentEnvironmentName - deployment environment name
      Returns:
      updated builder instance
      See Also:
    • clearContainerId

      public BUILDER clearContainerId()
      Clear existing value of containerId.
      Returns:
      updated builder instance
      See Also:
    • containerId

      public BUILDER containerId(String containerId)
      Identifier of the container in which the service instance is running.
      Parameters:
      containerId - container ID
      Returns:
      updated builder instance
      See Also:
    • clearContainerImageName

      public BUILDER clearContainerImageName()
      Clear existing value of containerImageName.
      Returns:
      updated builder instance
      See Also:
    • containerImageName

      public BUILDER containerImageName(String containerImageName)
      Name of the container image on which the container was built.
      Parameters:
      containerImageName - container image name
      Returns:
      updated builder instance
      See Also:
    • clearContainerImageTags

      public BUILDER clearContainerImageTags()
      Clear all containerImageTags.
      Returns:
      updated builder instance
      See Also:
    • containerImageTags

      public BUILDER containerImageTags(List<String> containerImageTags)
      Tags of the container image on which the container was built.
      Parameters:
      containerImageTags - container image tags
      Returns:
      updated builder instance
      See Also:
    • addContainerImageTags

      public BUILDER addContainerImageTags(List<String> containerImageTags)
      Tags of the container image on which the container was built.
      Parameters:
      containerImageTags - container image tags
      Returns:
      updated builder instance
      See Also:
    • addContainerImageTag

      public BUILDER addContainerImageTag(String containerImageTag)
      Tags of the container image on which the container was built.
      Parameters:
      containerImageTag - add single container image tags
      Returns:
      updated builder instance
      See Also:
    • clearContainerImageRepoDigests

      public BUILDER clearContainerImageRepoDigests()
      Clear all containerImageRepoDigests.
      Returns:
      updated builder instance
      See Also:
    • containerImageRepoDigests

      public BUILDER containerImageRepoDigests(List<String> containerImageRepoDigests)
      Repository digests of the container image as reported by the container runtime.
      Parameters:
      containerImageRepoDigests - container image repository digests
      Returns:
      updated builder instance
      See Also:
    • addContainerImageRepoDigests

      public BUILDER addContainerImageRepoDigests(List<String> containerImageRepoDigests)
      Repository digests of the container image as reported by the container runtime.
      Parameters:
      containerImageRepoDigests - container image repository digests
      Returns:
      updated builder instance
      See Also:
    • addContainerImageRepoDigest

      public BUILDER addContainerImageRepoDigest(String containerImageRepoDigest)
      Repository digests of the container image as reported by the container runtime.
      Parameters:
      containerImageRepoDigest - add single container image repository digests
      Returns:
      updated builder instance
      See Also:
    • clearAttributes

      public BUILDER clearAttributes()
      Clear existing value of attributes.
      Returns:
      updated builder instance
      See Also:
    • attributes

      public BUILDER attributes(io.opentelemetry.api.common.AttributesBuilder attributes)
      Additional resource attributes shared by all configured signals.
      Parameters:
      attributes - additional resource attributes
      Returns:
      updated builder instance
      See Also:
    • serviceNamespace

      public Optional<String> serviceNamespace()
      Namespace for the service.
      Returns:
      service namespace
    • serviceInstanceId

      public Optional<String> serviceInstanceId()
      Identifier for this service instance.
      Returns:
      service instance ID
    • deploymentEnvironmentName

      public Optional<String> deploymentEnvironmentName()
      Name of the deployment environment.
      Returns:
      deployment environment name
    • containerId

      public Optional<String> containerId()
      Identifier of the container in which the service instance is running.
      Returns:
      container ID
    • containerImageName

      public Optional<String> containerImageName()
      Name of the container image on which the container was built.
      Returns:
      container image name
    • containerImageTags

      public List<String> containerImageTags()
      Tags of the container image on which the container was built.
      Returns:
      container image tags
    • containerImageRepoDigests

      public List<String> containerImageRepoDigests()
      Repository digests of the container image as reported by the container runtime.
      Returns:
      container image repository digests
    • attributes

      public Optional<io.opentelemetry.api.common.AttributesBuilder> attributes()
      Additional resource attributes shared by all configured signals.
      Returns:
      additional resource attributes
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance