Class EnvironmentResourceProvider
java.lang.Object
io.opentelemetry.sdk.autoconfigure.internal.EnvironmentResourceProvider
- All Implemented Interfaces:
Ordered
,ResourceProvider
ResourceProvider
for automatically configuring ResourceConfiguration.createEnvironmentResource(ConfigProperties)
.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateResource
(ConfigProperties config) int
order()
Returns the order of applying the SPI implementing this interface.
-
Constructor Details
-
EnvironmentResourceProvider
public EnvironmentResourceProvider()
-
-
Method Details
-
createResource
- Specified by:
createResource
in interfaceResourceProvider
-
order
public int order()Description copied from interface:Ordered
Returns the order of applying the SPI implementing this interface. Higher values are applied later, for example: an SPI with order=1 will run after an SPI with order=0. SPI implementations with equal values will be run in a non-deterministic order.
-