celine2c opened a new issue #6576:
URL: https://github.com/apache/skywalking/issues/6576


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   
   ___
   ### Question
   Will ContextManager.continued merge spans?
   ___
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   
   - Which company or project?
   
   - What happened?
   I have read the following
   
https://github.com/apache/skywalking/blob/5.x/docs/en/Plugin-Development-Guide.md#contextsnapshot
   In this it is mentioned, like in the main thread, create a snap shot, pass 
it to the sub thread.
   In the entry class, I created an entry span, and I put few tags and its 
values in the span.
   I intercepted the constructor of the Runnable class and took the snapshot. I 
set the snapshot using objInst.setSkyWalkingDynamicField().
   In the run interceptor, in the before method, I created the local span, then 
called
   ContextManager.continued(contextSnapshot);
   Now in the thread process, I put few more tags and its values in the span 
   At run interceptor after method, when I am reading the tags and its values, 
I can see the tags from the local span i created, but the tags from the main 
span is not visible.
   I expect contextmanager.continued will be starting the span from where the 
snapshot was taken. 
   How can I merge the two spans to get the details from both the spans?
   
   ___
   ### 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