Class EnvironmentResourceProvider

  • All Implemented Interfaces:
    IDeepPlugin, Ordered, ResourceProvider

    public class EnvironmentResourceProvider
    extends Object
    implements IDeepPlugin, ResourceProvider
    This provider will read values from the environment to configure a resource.

    The values this will look for are:

    • - service.name - the value to use as the service name
    • - resource.attributes - a list of key value pairs to read as attributes
    The resource.attributes should follow the patterns defined by open telemetry

    The values will be read as either values in the config, system properties or environment variables.

    See Also:
    ISettings.getSettingAs(String, Class)