Create a BdlmMetricsAdapter with the specified manager, namespace, and object-identifier prefix.
Declared in <balm_bdlmmetricsadapter.h>
BdlmMetricsAdapter(
MetricsManager* metricsManager,
std::string_view const& metricNamespace,
std::string_view const& objectIdentifierPrefix,
bslma::Allocator* basicAllocator = 0);
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.
| Name | Description |
|---|---|
| metricsManager | metrics manager used to register callbacks |
| metricNamespace | default namespace attribute value |
| objectIdentifierPrefix | default object-identifier prefix |
| basicAllocator | allocator used to supply memory |