export method
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;
}