Class MetricsSegmentListener

  • All Implemented Interfaces:
    com.amazonaws.xray.listeners.SegmentListener

    public class MetricsSegmentListener
    extends java.lang.Object
    implements com.amazonaws.xray.listeners.SegmentListener
    Listener 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 in MetricsDaemonConfiguration. For a list of supported metrics see EMFMetricFormatter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterEndSegment​(com.amazonaws.xray.entities.Segment segment)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.amazonaws.xray.listeners.SegmentListener

        afterEndSubsegment, beforeEndSegment, beforeEndSubsegment, onBeginSegment, onBeginSubsegment, onClearEntity, onSetEntity
    • Constructor Detail

      • MetricsSegmentListener

        public MetricsSegmentListener()
    • Method Detail

      • afterEndSegment

        public void afterEndSegment​(com.amazonaws.xray.entities.Segment segment)
        Specified by:
        afterEndSegment in interface com.amazonaws.xray.listeners.SegmentListener