[#BloombergLP-bdlm-MetricsRegistry-enableMetricsCollection]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlm.adoc[bdlm]::xref:BloombergLP/bdlm/MetricsRegistry.adoc[MetricsRegistry]::enableMetricsCollection
:relfileprefix: ../../../
:mrdocs:

Enable metrics collection&period;

== Synopsis

Declared in `&lt;bdlm&lowbar;metricsregistry&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
enableMetricsCollection();
----

== Description

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

== Return Value

0 on success, and a non&hyphen;zero value otherwise


[.small]#Created with https://www.mrdocs.com[MrDocs]#
