public void reportToMetric(
            @Nullable final ProfileEvent event,
            @Nullable final String sortId,
            @Nullable final String topic,
            @NotNull(message = "Must specify fetch result") final SortSdkSourceContext.FetchResult fetchResult) {

        final Map<String, String> dimensions = this.createSortSdkSourceDimensionMap(event, sortId, topic);
        final SortMetricItem metricItem = metricItemSet.findMetricItem(dimensions);
        final int msgSize = event != null ? event.getBody().length : -1;
        this.reportToMetric(event, metricItem, fetchResult, msgSize);
    }
Entrance to report fetch metrics.

@param event The fetched event. May be <b>null</b> when fetch failed occurs.
@param sortId Sort id of event.
@param topic Topic that event fetched from. May be <b>null</b> when fetch failed occurs.
@param fetchResult Result of fetching, SUCCESS or FAILURE.
inlong-sort-standalone/sort-standalone-source/src/main/java/org/apache/inlong/sort/standalone/source/sortsdk/SortSdkSourceContext.java