public void recordSize(final String key, final long size) {
        if (this.metrics != null) {
            this.metrics.histogram(key).update(size);
        }
    }
Records operation batch size.

@param key  key of operation
@param size size of operation
jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeMetrics.java