fanjiang-2021 commented on issue #2443:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2443#issuecomment-875221187
这个问题 我们也遇到过 我们的处理方式
是在core/src/main/java/org/apache/servicecomb/core/invocation/InvocationFactory.java
做了处理,具体处理方案是这样的:
<html>
<body>
<!--StartFragment-->
String microserviceName =
RegistrationManager.INSTANCE.getMicroservice().getServiceName();
--
| | 46 | + String microserviceAppID =
RegistrationManager.INSTANCE.getAppId();
| | 47 | + if (null != microserviceAppID &&
!(microserviceAppID.equals(invocation.getAppId()))){
| | 48 | + microserviceName = microserviceAppID + ":" +
microserviceName;
| | 49 | + }
46 | invocation.addContext(Const.SRC_MICROSERVICE, microserviceName); | 50 |
invocation.addContext(Const.SRC_MICROSERVICE, microserviceName);
47 | return invocation; | 51 | return invocation;
<!--EndFragment-->
</body>
</html>
--
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]