public interface Emitter
Modifier and Type | Method and Description |
---|---|
boolean |
emitMetric(SinglePointMetric metric)
Emits a metric to all configured
Exporter
objects. |
default boolean |
maybeEmitMetric(SinglePointMetric metric)
Emits a metric if
shouldEmitMetric(Keyed) returns true. |
boolean |
shouldEmitMetric(Keyed key)
Tests whether this metric object could actually be emitted based on its key.
|
boolean shouldEmitMetric(Keyed key)
key
- metric key to test againstboolean emitMetric(SinglePointMetric metric)
Exporter
objects.metric
- to emitdefault boolean maybeEmitMetric(SinglePointMetric metric)
shouldEmitMetric(Keyed)
returns true.metric
- to emit