Return a shared pointer to a new collector for the specified metricId and add it to the repository.
Declared in <balm_collectorrepository.h>
bsl::shared_ptr<Collector>
addCollector(MetricId const& metricId);
The behavior is undefined unless metricId is a valid id returned by the MetricRepository supplied at construction.
shared pointer to the newly created collector
| Name | Description |
|---|---|
| metricId | identity of the metric for the new collector |