rate_limit was not defined in metrics classes