acquire_metrics_api_handler

Function acquire_metrics_api_handler 

Source
pub fn acquire_metrics_api_handler() -> Option<MetricsAPIHandler>
Expand description

Acquires the metrics API handler.

This function is mutable, and consumes the handler if it’s present. This means it should only be called once, and only after metrics have been initialized via initialize_metrics.

The metrics API handler can be used to install API routes which allow dynamically controlling the metrics level filtering. See MetricsAPIHandler for more information.