private void reportToMetric(
            @NotNull final AtomicLong countMetric,
            @NotNull final AtomicLong sizeMetric,
            final int size) {
        countMetric.incrementAndGet();
        sizeMetric.addAndGet(size);
    }
Report to a specific metric group.

@param countMetric Metric of event count.
@param sizeMetric Metric of event size.
@param size Size of event.
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/source/sortsdk/SortSdkSourceContext.java