addMetric method

bool addMetric(
  1. Metric metric
)

Adds a metric to the buffer.

Returns true if buffer should be flushed.

Implementation

bool addMetric(Metric metric) {
  _metrics.add(metric);
  return _shouldFlush();
}