Skip to main content

init_configured_or_noop

Function init_configured_or_noop 

Source
pub fn init_configured_or_noop() -> SharedMetricsRecorder
Expand description

Initializes the metrics backend selected by enabled Forge features.

Product entrypoints should prefer this helper over selecting a concrete backend directly. If no backend feature is enabled, or if backend initialization fails, the returned recorder is NoopMetrics.