Package com.amazonaws.xray.plugins
Class EKSPlugin
java.lang.Object
com.amazonaws.xray.plugins.EKSPlugin
- All Implemented Interfaces:
Plugin
A plugin, for use with the
AWSXRayRecorderBuilder
class, which will add Kubernetes metadata to segments.
If the cluster uses ContainerInsights this plugin will extract log configuration information.-
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
void
Generate runtime context with pod metadata from K8s.
-
Field Details
-
ORIGIN
- See Also:
-
-
Constructor Details
-
EKSPlugin
public EKSPlugin()Constructs an empty EKS plugin. The cluster name, along with other metadata, will be retrieved from the Container Insights endpoint automatically. -
EKSPlugin
Constructs an EKS plugin with a given cluster name.- Parameters:
clusterName
- the EKS cluster name
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
getLogReferences
- Specified by:
getLogReferences
in interfacePlugin
-
getServiceName
- Specified by:
getServiceName
in interfacePlugin
-
getRuntimeContext
- Specified by:
getRuntimeContext
in interfacePlugin
-
populateRuntimeContext
public void populateRuntimeContext()Generate runtime context with pod metadata from K8s. -
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
-