mufiye commented on issue #9999:
URL: https://github.com/apache/skywalking/issues/9999#issuecomment-1381448237

   > 
   Maybe in this format? I originally wrote as below.
   However, no matter what format these part codes are, the interception of 
`SpanRef` can take effect in the `aftermethod` of 
`TracerCreateLocalSpanInterceptor`? I am confused about it. And after reading 
source code about transform, I think it can not take effect?
   ```java
   public class TracerCreateLocalSpanInterceptor implements 
StaticMethodsAroundInterceptor {
       ...
       @Override
       public Object afterMethod(Class clazz, Method method, Object[] 
allArguments, Class<?>[] parameterTypes, Object ret) {
           AbstractSpan localSpan = 
ContextManager.createLocalSpan(String.valueOf(allArguments[0]));
           EnhancedInstance spanRef = (EnhancedInstance)new SpanRef();
           spanRef.setSkyWalkingDynamicField(localSpan);
           return spanRef;
       }
   }
   ```


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to