Compatible with the versions after dubbo-2.7.14 (#88)
The ```rpcContext.getAttachments()``` method returns is a copy Map
This commit is contained in:
parent
b92659c0c4
commit
dfda1aafca
|
|
@ -18,6 +18,7 @@ Release Notes.
|
|||
* Fix TracePathMatcher should match pattern "**" with paths end by "/"
|
||||
* Add support `returnedObj` expression for apm-customize-enhance-plugin
|
||||
* Fix the bug that httpasyncclient-4.x-plugin puts the dirty tracing context in the connection context
|
||||
* Compatible with the versions after dubbo-2.7.14
|
||||
|
||||
#### Documentation
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public class DubboInterceptor implements InstanceMethodsAroundInterceptor {
|
|||
CarrierItem next = contextCarrier.items();
|
||||
while (next.hasNext()) {
|
||||
next = next.next();
|
||||
rpcContext.getAttachments().put(next.getHeadKey(), next.getHeadValue());
|
||||
rpcContext.setAttachment(next.getHeadKey(), next.getHeadValue());
|
||||
if (invocation.getAttachments().containsKey(next.getHeadKey())) {
|
||||
invocation.getAttachments().remove(next.getHeadKey());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,4 +14,5 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
2.7.3
|
||||
2.7.3
|
||||
2.7.14
|
||||
Loading…
Reference in New Issue