[#BloombergLP-balm-CollectorRepository-collect-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::collect :relfileprefix: ../../../ :mrdocs: Append to the specified `records` the collected metric record values from the collectors in this repository belonging to the specified `category`. Note that this operation does not reset the managed collectors. == Synopsis Declared in `<balm_collectorrepository.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void collect( xref:bsl/vector-00d.adoc[bsl::vector<MetricRecord>]* records, xref:BloombergLP/balm/Category.adoc[Category] const* category); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#