AsperforMias commented on code in PR #3770:
URL: https://github.com/apache/dubbo-go/pull/3770#discussion_r4364742030


##########
metrics/rpc/util.go:
##########
@@ -46,6 +48,26 @@ func buildLabels(url *common.URL, invocation 
base.Invocation) map[string]string
        }
 }
 
+// metricApplication keeps consumer metrics on the local application. A
+// discovered provider URL retains the remote application in its params, while
+// the reference URL carries the local application config in its attributes.
+func metricApplication(url *common.URL) (string, string) {
+       if isConsumer(url) {
+               raw, _ := url.GetAttribute(constant.ApplicationKey)

Review Comment:
   可以的



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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to