Class EnvironmentResourceProvider
- java.lang.Object
-
- com.intergral.deep.agent.resource.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
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 Resource
createResource(ISettings settings)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.intergral.deep.agent.api.spi.IDeepPlugin
configure
-
-
-
-
Method Detail
-
createResource
public Resource createResource(ISettings settings)
- Specified by:
createResource
in interfaceResourceProvider
-
-