[#BloombergLP-balm-DefaultMetricsManagerScopedGuard-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/DefaultMetricsManagerScopedGuard.adoc[DefaultMetricsManagerScopedGuard]::DefaultMetricsManagerScopedGuard :relfileprefix: ../../../ :mrdocs: Create a scoped guard which invokes the `DefaultMetricsManager::create` method. Optionally specify a `basicAllocator` used to obtain memory. If `basicAllocator` is 0, the currently installed global allocator is used. The behavior is undefined unless `0 == DefaultMetricsManager::instance()` prior to creating the guard. Note that the default metrics manager instance is not configured with a publisher; clients must create a `Publisher` object and add it to the default metrics manager in order to publish metrics. == Synopsis Declared in `<balm_defaultmetricsmanager.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- DefaultMetricsManagerScopedGuard(xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#