wangkaijin commented on issue #5834:
URL: https://github.com/apache/skywalking/issues/5834#issuecomment-725801670


   ```
   public class EnqueueInterceptor implements InstanceMethodsAroundInterceptor, 
InstanceConstructorInterceptor {
   
       @Override
       public void onConstruct(EnhancedInstance enhancedInstance, Object[] 
objects) throws Throwable {
           final Request request = (Request) objects[1];
           final Request newRequest = request.newBuilder().header("test", 
"test").build();
           objects[1] = newRequest;
       }
   
       @Override
       public void beforeMethod(EnhancedInstance objInst, Method method, 
Object[] allArguments, Class<?>[] argumentsTypes, MethodInterceptResult result) 
throws Throwable {
   
       }
   
       @Override
       public Object afterMethod(EnhancedInstance objInst, Method method, 
Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable {
           return ret;
       }
   
       @Override
       public void handleMethodException(EnhancedInstance objInst, Method 
method, Object[] allArguments, Class<?>[] argumentsTypes, Throwable t) {
   
       }
   }
   ```
   
   The replacement request does not take effect
   
   


----------------------------------------------------------------
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]


Reply via email to