collect abstract method

Future<MetricData> collect()

Collect metrics from the MeterProvider.

This method triggers the collection of metrics, and returns the collected data as an object containing resource and metric information.

Implementation

Future<MetricData> collect();