BloombergLP::balm::MetricsManager::RecordsCollectionCallback

RecordsCollectionCallback is an alias for a callback function that appends to the supplied MetricRecord vector the values of the collected metrics, and, if the provided bool is true, resets those metrics to their default values. Clients can register callbacks matching this prototype with the metrics manager. Here is an example prototype matching this callback: ` void collectionCb(bsl::vector<MetricRecord> *records, bool resetFlag); `

Synopsis

Declared in <balm_metricsmanager.h>

typedef bsl::function<void(bsl::vector<MetricRecord>*, bool)> RecordsCollectionCallback;