Class EnvironmentResourceProvider

java.lang.Object
io.opentelemetry.sdk.autoconfigure.internal.EnvironmentResourceProvider
All Implemented Interfaces:
Ordered, ResourceProvider

public final class EnvironmentResourceProvider extends Object implements 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 Details

    • EnvironmentResourceProvider

      public EnvironmentResourceProvider()
  • Method Details

    • createResource

      public Resource createResource(ConfigProperties config)
      Specified by:
      createResource in interface ResourceProvider
    • 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.
      Specified by:
      order in interface Ordered