BloombergLP::balm::Metric_MacroImp::getCollector

Load the default collector for a metric and register a category holder.

Synopsis

Declared in <balm_metric.h>

static
void
getCollector(
    Collector** collector,
    CategoryHolder* holder,
    char const* category,
    char const* metric);

Description

Load the specified collector with the address of the default collector (from the default metrics manager) for the specified metric identified by the specified category and name, and register the specified holder for category. Note that *collector must be assigned before registering holder to ensure that the macros always have a valid collector when holder->enabled() is true.

Parameters

NameDescription
collectorreceives the address of the default collector
holdercategory holder to register for category
categorynull-terminated category name
metricnull-terminated metric name