stalary commented on issue #3478: Kafka plugin not work on Spring Boot and Spring Kafka URL: https://github.com/apache/skywalking/issues/3478#issuecomment-533859414 @wu-sheng I create manual class resolve this problem, but there are new problem. ```java EnhancedInstance callbackInstance = (EnhancedInstance) allArguments[1]; if (null != callbackInstance) { ContextSnapshot snapshot = ContextManager.capture(); if (null != snapshot) { callbackInstance.setSkyWalkingDynamicField(snapshot); } } ``` In this callbackInstance is my manual class org.apache.skywalking.apm.plugin.kafka.KafkaCallback. Then doSend in kafka executes ```java Callback interceptCallback = new InterceptorCallback<>(callback, this.interceptors, tp); ``` This caused me to lose snapshot in CallbackInterceptor ```java ContextSnapshot contextSnapshot = (ContextSnapshot) objInst.getSkyWalkingDynamicField(); ``` contextSnapshot always is null. Can you give me some help?
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services