Interface OpenTelemetryResourceConfig

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
OpenTelemetryResourceConfig.BuilderBase.OpenTelemetryResourceConfigImpl

public interface OpenTelemetryResourceConfig extends Prototype.Api
OpenTelemetry resource settings shared by all configured signals. Optional values left unspecified do not add or override resource attributes.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static OpenTelemetryResourceConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static OpenTelemetryResourceConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • serviceNamespace

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

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

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

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

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

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

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

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