BloombergLP::balm::CollectorRepository::addIntegerCollector

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

Synopsis

Declared in <balm_collectorrepository.h>

bsl::shared_ptr<IntegerCollector>
addIntegerCollector(MetricId const& metricId);

Description

The behavior is undefined unless metricId is a valid id returned by the MetricRepository supplied at construction.

Return Value

shared pointer to the newly created integer collector

Parameters

NameDescription
metricIdidentity of the metric for the new integer collector