Class StdoutMetricEmitter

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

public class StdoutMetricEmitter
extends java.lang.Object
implements MetricEmitter
Writes EMF formatted structured logs to stdout for testing.
  • Constructor Summary

    Constructors
    Constructor Description
    StdoutMetricEmitter()  
  • 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

    • StdoutMetricEmitter

      public StdoutMetricEmitter()
  • Method Details

    • emitMetric

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