Class UDPMetricEmitter

java.lang.Object
com.amazonaws.xray.metrics.UDPMetricEmitter
All Implemented Interfaces:
MetricEmitter

public class UDPMetricEmitter
extends java.lang.Object
implements MetricEmitter
Generates EMF formatted metrics and send them to the CloudWatch Agent for publication.
  • Constructor Summary

    Constructors
    Constructor Description
    UDPMetricEmitter()  
  • Method Summary

    Modifier and Type Method Description
    void emitMetric​(Segment segment)
    Format the given metric and emit it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UDPMetricEmitter

      public UDPMetricEmitter() throws java.net.SocketException
      Throws:
      java.net.SocketException
  • Method Details

    • emitMetric

      public void emitMetric​(Segment segment)
      Format the given metric and emit it.
      Specified by:
      emitMetric in interface MetricEmitter
      Parameters:
      segment - Segment to emit metrics from