BloombergLP::bdlm::MetricsRegistry::enableMetricsCollection

Enable metrics collection.

Synopsis

Declared in <bdlm_metricsregistry.h>

int
enableMetricsCollection();

Description

If there is an associated metrics adapter, all collection callbacks will be registered with the adapter. Return 0 on success, and non-zero value otherwise. Metrics collection is enabled at construction of this registry.

Return Value

0 on success, and a non-zero value otherwise