[#BloombergLP-bdlm-MetricsRegistry-disableMetricsCollection] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::xref:BloombergLP/bdlm/MetricsRegistry.adoc[MetricsRegistry]::disableMetricsCollection :relfileprefix: ../../../ :mrdocs: Disable metrics collection. == Synopsis Declared in `<bdlm_metricsregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int disableMetricsCollection(); ---- == Description If there is an associated metrics adapter, all the collection callbacks are unregistered from that adapter. The adapter remains associated with this registry. Collection callbacks registered with this registry are not registered with the associated adapter until metrics collections is enabled. Return 0 on success, and a non‐zero value otherwise. Metrics collection is enabled at construction of this registry. == Return Value 0 on success, and a non‐zero value otherwise [.small]#Created with https://www.mrdocs.com[MrDocs]#