pub type RegistryFn = Box<dyn FnOnce(&Registry) -> Result<(), Error>>;
Helper fn to register metrics
pub struct RegistryFn(/* private fields */);