@Override
    public String name(String name, Meter.Type type, @Nullable String baseUnit) {
        String formattedName = StringEscapeUtils.escapeJson(delegate.name(name, type, baseUnit));
        return StringUtils.truncate(formattedName, NAME_MAX_LENGTH);
    }
@ Override public String name ( String name , Meter . Type type , @ Nullable String baseUnit ) { String formattedName = StringEscapeUtils . escapeJson ( delegate . name ( name , type , baseUnit ) ) ; return StringUtils . truncate ( formattedName , NAME_MAX_LENGTH ) ; }
Metric (the metric name) can be any non-empty UTF-8 string, with a maximum length <= 256 characters