View Source otel_resource_env_var (opentelemetry v1.5.0)
Resource detector (otel_resource_detector
) which adds attributes to the Resource
based on environment variables.
This resource detector reads the OTEL_RESOURCE_ATTRIBUTES
environment variable and parses it as a comma-separated list of key-value pairs. For example, key1=val1,key2=val2
.
resource_detectors
in the opentelemetry
application environment).