Package com.amazonaws.xray.metrics
Class StdoutMetricEmitter
java.lang.Object
com.amazonaws.xray.metrics.StdoutMetricEmitter
- All Implemented Interfaces:
MetricEmitter
Writes EMF formatted structured logs to stdout for testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
emitMetric
(Segment segment) Format the given metric and emit it.
-
Constructor Details
-
StdoutMetricEmitter
public StdoutMetricEmitter()
-
-
Method Details
-
emitMetric
Description copied from interface:MetricEmitter
Format the given metric and emit it.- Specified by:
emitMetric
in interfaceMetricEmitter
- Parameters:
segment
- Segment to emit metrics from
-