[#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` with the specified manager, namespace, and object&hyphen;identifier prefix&period;

== Synopsis

Declared in `&lt;balm&lowbar;bdlmmetricsadapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
BdlmMetricsAdapter(
    xref:BloombergLP/balm/MetricsManager.adoc[MetricsManager]* metricsManager,
    std::string&lowbar;view const& metricNamespace,
    std::string&lowbar;view const& objectIdentifierPrefix,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

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`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *metricsManager*
| metrics manager used to register callbacks
| *metricNamespace*
| default namespace attribute value
| *objectIdentifierPrefix*
| default object&hyphen;identifier prefix
| *basicAllocator*
| allocator used to supply memory
|===


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