Package com.amazonaws.xray.plugins
Class ECSPlugin
java.lang.Object
com.amazonaws.xray.plugins.ECSPlugin
- All Implemented Interfaces:
Plugin
A plugin, for use with the
AWSXRayRecorderBuilder
class, which will add ECS container information to segments generated
by the built AWSXRayRecorder
instance.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine equality of plugins using origin to uniquely identify themReturns the name of the origin associated with this plugin.int
hashCode()
Hash plugin object using origin to uniquely identify themboolean
Returns true if the environment variable added by ECS is present and contains a valid URIvoid
-
Field Details
-
ORIGIN
- See Also:
-
-
Constructor Details
-
ECSPlugin
public ECSPlugin()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns true if the environment variable added by ECS is present and contains a valid URI -
getServiceName
- Specified by:
getServiceName
in interfacePlugin
-
populateRuntimeContext
public void populateRuntimeContext() -
getRuntimeContext
- Specified by:
getRuntimeContext
in interfacePlugin
-
getLogReferences
- Specified by:
getLogReferences
in interfacePlugin
-
getOrigin
Description copied from interface:Plugin
Returns the name of the origin associated with this plugin. TheAWSXRayRecorder
contains a prioritized list of origins from least to most specific. -
equals
Determine equality of plugins using origin to uniquely identify them -
hashCode
public int hashCode()Hash plugin object using origin to uniquely identify them
-