Package com.amazonaws.xray.metrics
Class MetricsSegmentListener
- java.lang.Object
-
- com.amazonaws.xray.metrics.MetricsSegmentListener
-
- All Implemented Interfaces:
com.amazonaws.xray.listeners.SegmentListener
public class MetricsSegmentListener extends java.lang.Object implements com.amazonaws.xray.listeners.SegmentListenerListener that extracts metrics from Segments and emits them to CloudWatch using a structured log mechanism. Structured logs are sent via UDP to the CloudWatch agent. Configuration of UDP metric emissions is described inMetricsDaemonConfiguration. For a list of supported metrics seeEMFMetricFormatter.
-
-
Constructor Summary
Constructors Constructor Description MetricsSegmentListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEndSegment(com.amazonaws.xray.entities.Segment segment)
-