starboyate opened a new issue #5925:
URL: https://github.com/apache/skywalking/issues/5925


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Feature or performance improvement
   ___
   ### Question
   when the extract() and continued() methods of TraceContext are called, 
TraceSegmentRef is created in the outer layer and then ref() is called to bind. 
If the corresponding TraceSegmentRef already exists, then no operation is done 
in the ref() method, here Will cause useless TraceSegmentRef object creation
   ___
   ### Requirement or improvement
   I think some common fields of ContextCarrier and ContextSnapshot can be 
extracted and defined as the parent class, and then provide a method to create 
TraceSegmentRef based on the parent class. In the ref() method of TraceSegment, 
the parameter is defined as the parent class, and then the ref() method returns 
TraceSegmentRef for external use
   


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


Reply via email to