You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/11/10 07:02:58 UTC

[GitHub] [skywalking] wu-sheng commented on a change in pull request #3820: [agent/plugin] Move FILTER_LENGTH_LIMIT to config.plugin.mongodb

wu-sheng commented on a change in pull request #3820: [agent/plugin] Move FILTER_LENGTH_LIMIT to config.plugin.mongodb
URL: https://github.com/apache/skywalking/pull/3820#discussion_r344475635
 
 

 ##########
 File path: apm-sniffer/apm-sdk-plugin/mongodb-3.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/mongodb/v3/support/MongoOperationHelper.java
 ##########
 @@ -111,7 +128,8 @@ private static String getFilter(List<? extends WriteRequest> writeRequestList) {
             } else if (request instanceof UpdateRequest) {
                 params.append(((UpdateRequest) request).getFilter()).append(",");
             }
-            if (params.length() > MongoConstants.FILTER_LENGTH_LIMIT) {
+            final int filterLengthLimit = Config.Plugin.MongoDB.FILTER_LENGTH_LIMIT;
+            if (filterLengthLimit > 0 && params.length() > filterLengthLimit) {
 
 Review comment:
   Negative value means all?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services