Class ResourceConfiguration
java.lang.Object
io.opentelemetry.sdk.autoconfigure.ResourceConfiguration
Auto-configuration for the OpenTelemetry
Resource
.- Since:
- 1.28.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Resource
configureResource
(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) static Resource
Create aResource
from the environment.static Resource
Create aResource
from the environment.(package private) static Resource
filterAttributes
(Resource resource, ConfigProperties configProperties)
-
Field Details
-
logger
-
SERVICE_NAME
-
ATTRIBUTE_PROPERTY
- See Also:
-
SERVICE_NAME_PROPERTY
- See Also:
-
EXPERIMENTAL_DISABLED_ATTRIBUTE_KEYS
- See Also:
-
DISABLED_ATTRIBUTE_KEYS
- See Also:
-
-
Constructor Details
-
ResourceConfiguration
private ResourceConfiguration()
-
-
Method Details
-
createEnvironmentResource
Create aResource
from the environment. The resource contains attributes parsed from environment variables and system property keysotel.resource.attributes
andotel.service.name
.- Returns:
- the resource.
-
createEnvironmentResource
Create aResource
from the environment. The resource contains attributes parsed from environment variables and system property keysotel.resource.attributes
andotel.service.name
.- Parameters:
config
- theConfigProperties
used to obtain resource properties- Returns:
- the resource.
-
configureResource
static Resource configureResource(ConfigProperties config, SpiHelper spiHelper, BiFunction<? super Resource, ConfigProperties, ? extends Resource> resourceCustomizer) -
filterAttributes
-