twz007 commented on code in PR #11012: URL: https://github.com/apache/dubbo/pull/11012#discussion_r1032005831
########## dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/filter/MetricsCollectExecutor.java: ########## @@ -88,6 +90,10 @@ private void endExecute(Supplier<Boolean> rtStat){ private void init(Invocation invocation) { String serviceUniqueName = invocation.getTargetServiceUniqueName(); String methodName = invocation.getMethodName(); + if (invocation instanceof RpcInvocation && + isGenericCall(((RpcInvocation) invocation).getParameterTypesDesc(), methodName)) { + methodName = (String) invocation.getArguments()[0]; Review Comment: @CrazyHZM I solved it, please check the following. -- 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. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org