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.

    • setAttributes

      public ResourceModel setAttributes(List<AttributeNameValueModel> attributes)
    • getSchemaUrl

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

      If omitted or null, no schema URL is used.

    • setSchemaUrl

      public ResourceModel setSchemaUrl(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.

    • setAttributesList

      public ResourceModel setAttributesList(String attributesList)
    • getExtensionProperties

      public Map<String,Object> getExtensionProperties()
    • setExtensionProperty

      public ResourceModel setExtensionProperty(String name, @Nullable Object value)
    • 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