java.lang.Object
io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.ResourceModel

@Generated("io.opentelemetry.gradle.DeclarativeConfigPojoGenerator") public class ResourceModel extends Object
  • Constructor Details

    • ResourceModel

      public ResourceModel()
  • Method Details

    • getAttributes

      @Nullable public List<AttributeNameValueModel> getAttributes()
      Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.

      If omitted, no resource attributes are added.

    • withAttributes

      public ResourceModel withAttributes(List<AttributeNameValueModel> attributes)
    • getDetectionDevelopment

      @Nullable public io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.internal.ExperimentalResourceDetectionModel getDetectionDevelopment()
      Configure resource detection.

      If omitted, resource detection is disabled.

    • withDetectionDevelopment

      public ResourceModel withDetectionDevelopment(io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.internal.ExperimentalResourceDetectionModel detectionDevelopment)
    • getSchemaUrl

      @Nullable public String getSchemaUrl()
      Configure resource schema URL.

      If omitted or null, no schema URL is used.

    • withSchemaUrl

      public ResourceModel withSchemaUrl(String schemaUrl)
    • getAttributesList

      @Nullable public String getAttributesList()
      Configure resource attributes. Entries have lower priority than entries from .resource.attributes.

      The value is a list of comma separated key-value pairs matching the format of OTEL_RESOURCE_ATTRIBUTES. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.

      If omitted or null, no resource attributes are added.

    • withAttributesList

      public ResourceModel withAttributesList(String attributesList)
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object