[#BloombergLP-balm-BdlmMetricsAdapter-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/BdlmMetricsAdapter.adoc[BdlmMetricsAdapter]::BdlmMetricsAdapter :relfileprefix: ../../../ :mrdocs: Create a `BdlmMetricsAdapter` object that uses the specified `metricsManager` to register and unregister collection callback functors, the specified `metricNamespace` as the value returned by `defaultNamespace()`, and the specified `objectIdentifierPrefix` as the value returned by `defaultObjectIdentifierPrefix`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Synopsis Declared in `<balm_bdlmmetricsadapter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- BdlmMetricsAdapter( xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* metricsManager, std::string_view const& metricNamespace, std::string_view const& objectIdentifierPrefix, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#