public int printAndResetStatsInfo() {
            int sumCnt = 0;
            // print summary info
            for (Map.Entry<String, LongAdder> entry : sumMap.entrySet()) {
                if (entry == null || entry.getKey() == null || entry.getValue() == null) {
                    continue;
                }
                LOGGER.info("{}.summary.{}={}", this.statsName, entry.getKey(), entry.getValue());
                sumCnt++;
            }
            // print detail info
            for (Map.Entry<String, LongAdder> entry : detailsMap.entrySet()) {
                if (entry == null || entry.getKey() == null || entry.getValue() == null) {
                    continue;
                }
                LOGGER.info("{}.detail.{}={}", this.statsName, entry.getKey(), entry.getValue());
                sumCnt++;
            }
            sumMap.clear();
            detailsMap.clear();
            return sumCnt;
        }
add detail statistic items

@param detailKey the detail key
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/metrics/stats/MonitorStats.java