BloombergLP::balm::MetricsManager::registerCollectionCallback

registerCollectionCallback overloads

Synopses

Declared in <balm_metricsmanager.h>

Register a callback to collect records for the specified category.

CallbackHandle
registerCollectionCallback(
    Category const* category,
    RecordsCollectionCallback const& callback);
» more...

Register a callback to collect records for the named category.

MetricsManager::CallbackHandle
registerCollectionCallback(
    char const* categoryName,
    RecordsCollectionCallback const& callback);
» more...

Return Value

opaque integer handle that can be used later to remove the callback

Parameters

NameDescription
categorycategory for which to register the callback
callbackcallback invoked to collect records for category
categoryNamenull-terminated category name