Class ResourceModel
java.lang.Object
io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.ResourceModel
@Generated("io.opentelemetry.gradle.DeclarativeConfigPojoGenerator")
public class ResourceModel
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanConfigure resource attributes.Configure resource attributes.io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.internal.ExperimentalResourceDetectionModelConfigure resource detection.Configure resource schema URL.inthashCode()toString()withAttributes(List<AttributeNameValueModel> attributes) withAttributesList(String attributesList) withDetectionDevelopment(io.opentelemetry.sdk.autoconfigure.declarativeconfig.model.internal.ExperimentalResourceDetectionModel detectionDevelopment) withSchemaUrl(String schemaUrl)
-
Constructor Details
-
ResourceModel
public ResourceModel()
-
-
Method Details
-
getAttributes
Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.If omitted, no resource attributes are added.
-
withAttributes
-
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
Configure resource schema URL.If omitted or null, no schema URL is used.
-
withSchemaUrl
-
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
-
toString
-
hashCode
public int hashCode() -
equals
-