You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/08/12 08:03:02 UTC

[GitHub] [dubbo] javaeekobi commented on issue #10446: 一次rpc调用如何指定全局参数,rpc上下文需要调用一次指定一次,需求是全局有效的

javaeekobi commented on issue #10446:
URL: https://github.com/apache/dubbo/issues/10446#issuecomment-1212840512

   RpcContext.getContext().setAttachment("index", "1"); 
   xxxService.xxx(); // 远程调用
   // ...
   
   这种方式,微服务之间多次调用就要设置多次,不满足需求.
   希望一次rpv链路可以设置一个全局有效的参数
   
   也可以将参数传给服务的提供者,但这样做代码改动较大,还是希望dubbo有方法可以解决


-- 
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-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org