addCollector overloads
Synopses
Declared in <balm_collectorrepository.h>
Return a shared pointer to a newly‐created modifiable collector identified by the specified metricId and add that collector to the repository. The behavior is undefined unless metricId is a valid id returned by the MetricRepository supplied at construction.
bsl::shared_ptr<Collector>
addCollector(MetricId const& metricId);
Return a shared pointer to a newly‐created modifiable collector identified by the specified null‐terminated strings 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. Note that this operation is logically equivalent to: ` addCollector(registry().getId(category, metricName)) `
bsl::shared_ptr<Collector>
addCollector(
char const* category,
char const* metricName);
Created with MrDocs