zhaoyuguang commented on a change in pull request #5209:
URL: https://github.com/apache/skywalking/pull/5209#discussion_r464938789
##########
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:
It's the object's own toString, which the user has to implement, I had
modify markdown file
----------------------------------------------------------------
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]