Class EnvironmentResourceProvider

  • All Implemented Interfaces:
    com.intergral.deep.agent.api.spi.IDeepPlugin, com.intergral.deep.agent.api.spi.Ordered, com.intergral.deep.agent.api.spi.ResourceProvider

    public class EnvironmentResourceProvider
    extends Object
    implements com.intergral.deep.agent.api.spi.IDeepPlugin, com.intergral.deep.agent.api.spi.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)
    • Constructor Detail

      • EnvironmentResourceProvider

        public EnvironmentResourceProvider()
    • Method Detail

      • createResource

        public com.intergral.deep.agent.api.resource.Resource createResource​(com.intergral.deep.agent.api.settings.ISettings settings)
        Specified by:
        createResource in interface com.intergral.deep.agent.api.spi.ResourceProvider