StatisticsService (@NotNull String recorderId) { EventLogSendListener listener = new EventLogSendListener() { @Override public void onLogsSend(@NotNull List<String> successfullySentFiles, @NotNull List<Integer> errors, int totalLocalFiles) { int success = successfullySentFiles.size(); int failed = errors.size(); EventLogSystemLogger.logFilesSend( recorderId, totalLocalFiles, success, failed, false, successfullySentFiles, errors ); } }; return new EventLogStatisticsService( EventLogInternalSendConfig.createByRecorder(recorderId, true), new EventLogInternalApplicationInfo(isUseTestStatisticsConfig(), isUseTestStatisticsSendEndpoint()), listener ); }