private String calculateRateUnit(final TimeUnit unit) {
        final String s = unit.toString().toLowerCase(Locale.US);
        return s.substring(0, s.length() - 1);
    }
Print only if the attribute is enabled

@param type   Metric attribute
@param status Status to be logged
jraft-core/src/main/java/com/alipay/sofa/jraft/util/MetricReporter.java