BloombergLP::balm::CollectorRepository::addCollector

addCollector overloads

Synopses

Declared in <balm_collectorrepository.h>

Return a shared pointer to a new collector for the specified metricId and add it to the repository.

bsl::shared_ptr<Collector>
addCollector(MetricId const& metricId);
» more...

Return a shared pointer to a new collector for the specified category and metricName.

bsl::shared_ptr<Collector>
addCollector(
    char const* category,
    char const* metricName);
» more...

Return Value

shared pointer to the newly created collector

Parameters

NameDescription
metricIdidentity of the metric for the new collector
categorynull-terminated category name
metricNamenull-terminated metric name