## What is the purpose of the change
在使用dubbo时,provider 
无法在url中获取consumer的application,只能获取本服务的application,不知道是框架本身没有考虑到这点,还是故意这么设计的,建议你们在改造dubbo时,能够支持这一点,我们在使用过程中当服务调用方越来越多的时候,有的时候碰到问题时想快速排查哪个调用方的请求导致的问题,现在我们只能通过dubbo
 
admin去找出哪些应用在调用,要一个一个去找对应的应用去排查问题,这么做太低效了,我们之前也有考虑过在每个请求方增加application的必填参数,但是这么做发现作为服务提供方要在每个dto中增加此参数,维护成本太大。

所以在url中带consumer的application,方便provider 维护接口

## Brief changelog
- To append the consumer's appName in the request for rpc invocation, we get 
the name through ConfigUtil and store it in the map relation (parameters) of 
URL && attachment of RpcInvocation.
- For provider, wo offer a method (getConsumerAppName) in WrappedChannelHandler 
to get the consumer's appName.

## Verifying this change

西溪百技274期10组issue2

Follow this checklist to help us incorporate your contribution quickly and 
easily:

- [x] Make sure there is a 
[GITHUB_issue](https://github.com/apache/incubator-dubbo/issues) filed for the 
change (usually before you start working on it). Trivial changes like typos do 
not require a GITHUB issue. Your pull request should address just this issue, 
without pulling in other changes - one PR resolves one issue.
- [ ] Format the pull request title like `[Dubbo-XXX] Fix UnknownException when 
host config not exist #XXX`. Each commit in the pull request should have a 
meaningful subject line and body.
- [ ] Write a pull request description that is detailed enough to understand 
what the pull request does, how, and why.
- [ ] Write necessary unit-test to verify your logic correction, more mock a 
little better when cross module dependency exist. If the new feature or 
significant change is committed, please remember to add integration-test in 
[test module](https://github.com/apache/incubator-dubbo/tree/master/dubbo-test).
- [ ] Run `mvn clean install -DskipTests` & `mvn clean test-compile 
failsafe:integration-test` to make sure unit-test and integration-test pass.
- [ ] If this contribution is large, please follow the [Software Donation 
Guide](https://github.com/apache/incubator-dubbo/wiki/Software-donation-guide).


[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/2364 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to