killGC opened a new issue #6314:
URL: https://github.com/apache/skywalking/issues/6314


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   package org.apache.skywalking.apm.toolkit.activation.log.logback.v1.x.async;
   
   import org.apache.skywalking.apm.agent.core.context.ContextManager;
   import 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.EnhancedInstance;
   import 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor;
   import 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.MethodInterceptResult;
   
   import java.lang.reflect.Method;
   
   public class AsyncAppenderBaseMethodInterceptor implements 
InstanceMethodsAroundInterceptor {
   
       @Override
       public void beforeMethod(EnhancedInstance objInst, Method method, 
Object[] allArguments, Class<?>[] argumentsTypes,
           MethodInterceptResult result) throws Throwable {
           if (**allArguments[0] instanceof EnhancedInstance**) {
               EnhancedInstance instances = (EnhancedInstance) allArguments[0];
               
instances.setSkyWalkingDynamicField(ContextManager.getGlobalTraceId());
           }
       }
   
       @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) {
       }
   }
   
   which class set allArguments[0] to EnhancedInstance ?
   ___
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   
   - Which company or project?
   
   - What happened?
   If possible, provide a way to reproduce the error. e.g. demo application, 
component version.
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


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