The resource attributes are key-value pairs that describe the entity generating telemetry data, such as the service name, version, or location. You can configure these attributes using the resource_attributes property in the configuration file. The values you set for this property are attached to every OpenTelemetry (OTel) span to provide context about source from which the telemetry originates.

The following example shows how to specify the resource_attributes property in the configuration file:
resource_attributes: "service.name=OE,myservice=test_openedge,location=client"



Note: If you do not specify this property, the default value is set to the standard resource attribute service.name with the value OpenEdge.
You can also set the resource attributes using OTel SDK standard environment variable, OTEL_RESOURCE_ATTRIBUTES. For example:
OTEL_RESOURCE_ATTRIBUTES="service.name=OE_ABL,myenvtest=mytest"


Note: If the same resource attribute is defined in both the configuration file and the OTEL_RESOURCE_ATTRIBUTES environment variable, the value in the configuration file takes precedence.