wu-sheng commented on a change in pull request #5209:
URL: https://github.com/apache/skywalking/pull/5209#discussion_r464909971



##########
File path: 
apm-sniffer/apm-sdk-plugin/dubbo-2.7.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/asf/dubbo/DubboInterceptor.java
##########
@@ -152,4 +165,26 @@ private String generateRequestURL(URL url, Invocation 
invocation) {
         requestURL.append(generateOperationName(url, invocation));
         return requestURL.toString();
     }
+
+    private void collectArguments(boolean needCollectArguments, int 
argumentsLengthThreshold, AbstractSpan span, Invocation invocation) {
+        if (needCollectArguments && argumentsLengthThreshold > 0) {
+            Object[] parameters = invocation.getArguments();
+            if (parameters != null && parameters.length > 0) {
+                StringBuilder stringBuilder = new StringBuilder();
+                boolean first = true;
+                for (Object parameter : parameters) {
+                    if (!first) {
+                        stringBuilder.append(",");
+                    }
+                    stringBuilder.append(parameter);

Review comment:
       So, this depends on `parameter#toString`, right? Is this a recommended 
way? Or should we consider JSON? I am not using Dubbo for a long time. Is Dubbo 
having toString already?




----------------------------------------------------------------
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:
[email protected]


Reply via email to