tzy1316106836 commented on a change in pull request #4187: make a suggestion 
about DUBBO plugin
URL: https://github.com/apache/skywalking/pull/4187#discussion_r363593344
 
 

 ##########
 File path: 
apm-sniffer/apm-sdk-plugin/dubbo-plugin/src/main/java/org/apache/skywalking/apm/plugin/dubbo/DubboInterceptor.java
 ##########
 @@ -56,6 +57,9 @@ public void beforeMethod(EnhancedInstance objInst, Method 
method, Object[] allAr
         Class<?>[] argumentsTypes, MethodInterceptResult result) throws 
Throwable {
         Invoker invoker = (Invoker)allArguments[0];
         Invocation invocation = (Invocation)allArguments[1];
+        if 
(invocation.getAttachments().containsKey(SW3CarrierItem.HEADER_NAME)) {
+            invocation.getAttachments().remove(SW3CarrierItem.HEADER_NAME);
+        }
 
 Review comment:
   When dubbo retry, the parameter sw3 will not be updated. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to