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

   > > First is the SpanRef how to point to the real span, the method I think 
is embedding a real span attribute span into the SpanRef object. WDYT?
   > 
   > From the API level, I think you don't need anything to do. In the 
activation, the `EnhancedInstance#setSkyWalkingDynamicField` to host the span 
in the spanRef.
   > 
   > > Then we should import the AsyncSpan class into the SpanRef class. Is it 
allowed to import internal packages like this? Also for the ContextSnapshot 
imported into the Tracer class for capture and continued methods.
   > 
   > You don't have a chance to call any internal agent APIs in the toolkit 
part. All those calling have to do through activation(plugin mechanism).
   
   Ok, it is more reasonable and I will use the 
`EnhancedInstance#setSkyWalkingDynamicField`. So for the ContextSnapshot, I 
will use the `ContextSnapshotRef` and 
`EnhancedInstance#setSkyWalkingDynamicField` like the `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