Class EnvironmentResourceProvider
- java.lang.Object
-
- io.opentelemetry.sdk.autoconfigure.internal.EnvironmentResourceProvider
-
- All Implemented Interfaces:
Ordered
,ResourceProvider
public final class EnvironmentResourceProvider extends java.lang.Object implements ResourceProvider
ResourceProvider
for automatically configuringResourceConfiguration.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 Constructor Description EnvironmentResourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource
createResource(ConfigProperties config)
int
order()
Returns the order of applying the SPI implementing this interface.
-
-
-
Method Detail
-
createResource
public Resource createResource(ConfigProperties config)
- 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.
-
-