export method

  1. @override
Future<bool> export(
  1. MetricData data
)
override

Export a batch of metrics to the backend.

Returns true if the export was successful, false otherwise.

Implementation

@override
Future<bool> export(MetricData data) async {
  if (_isShutdown) return false;
  _metrics.addAll(data.metrics);
  return true;
}