Class StdoutMetricEmitter

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

public class StdoutMetricEmitter extends Object implements MetricEmitter
Writes EMF formatted structured logs to stdout for testing.
  • 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