Class EnvironmentResourceProvider
- java.lang.Object
-
- com.intergral.deep.agent.resource.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
resource.attributes
should follow the patterns defined by open telemetryThe values will be read as either values in the config, system properties or environment variables.
- See Also:
ISettings.getSettingAs(String, Class)
-
-
Constructor Summary
Constructors Constructor Description EnvironmentResourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.intergral.deep.agent.api.resource.Resource
createResource(com.intergral.deep.agent.api.settings.ISettings settings)
-