[#BloombergLP-balm-CollectorRepository-addIntegerCollector-06a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/CollectorRepository.adoc[CollectorRepository]::addIntegerCollector :relfileprefix: ../../../ :mrdocs: Return a shared pointer to a newly created modifiable integer collector identified by the specified `category` and `metricName` and add that collector to the repository. If is not already registered, also add the identified metric to the `metricRegistry` supplied at construction. The behavior is undefined unless `category` and `metricName` are null‐terminated. Note that this operation is logically equivalent to: ` addIntegerCollector(registry().getId(category, metricName)) ` == Synopsis Declared in `<balm_collectorrepository.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<IntegerCollector>] addIntegerCollector( char const* category, char const* metricName); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#