devkanro edited a comment on issue #4165: Add kotlin coroutine plugin
URL: https://github.com/apache/skywalking/pull/4165#issuecomment-570762748
 
 
   > One question to all, does this plugin suppose to optional or default. How 
wide does routine use in kotlin? Could it have side effect as default for all 
coroutine?
   
   @wu-sheng 
   I think this can be divided into four cases.
   
   ### Pure Java
   Pure java will not exist the interception point, the plugin will not be 
activated, maybe no additional cost with this case, just 1 classes be loaded.
   
   ### Kotlin but no coroutine
   Kotlin is becoming popular in the back-end stack, because of Kotlin's 
practical and straightforward grammar and powerful stdlib. But most people 
maybe use Kotlin to instead of Java, but no more coroutines or other adv 
features.
   
   But if you don't have dependent on 
`org.jetbrains.kotlinx:kotlinx-coroutines-core`, the interception point will 
not exist too.
   
   ### Kotlin with coroutine in business code
   Maybe sometimes, people will use coroutine in their business code, and don't 
care about the tracing in the coroutine.
   
   It will cause some performance loss, about create two context snapshots cost.
   
   ### Kotliun with coroutine stack
   This is my use case. I'm using a full coroutine stack framework, and it is 
necessary to make the links traceable.
   
   It will cost about create two context snapshots, a span, a `TracingRunnable` 
object.

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

Reply via email to