[#BloombergLP-balm-MetricsManager-RecordsCollectionCallback] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]::RecordsCollectionCallback :relfileprefix: ../../../ :mrdocs: `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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- typedef xref:bsl/function-0a.adoc[bsl::function<void(xref:bsl/vector-00d.adoc[bsl::vector<MetricRecord>]*, bool)>] RecordsCollectionCallback; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#