mdedetrich commented on issue #1484:
URL: https://github.com/apache/pekko/issues/1484#issuecomment-2363764666

   > Creating an un-instrumentation library is not what we want, but we need to 
consider what kind of method can not be inline, we should inline those method 
irrelevant, but shouldn't inline for the lifecycle method, and execution method.
   
   If the Scala compiler determines a method should be inlined, there isn't any 
reason to prevent this inlining aside from the very rare chance that it creates 
a performance regression (which can theoritically happen but haven't seen any 
evidence of it so far). The Scala compiler will only inline methods that is 
safe to do so, even if its for lifecycle/execution methods.
   
   The case we have with instrumentation right now is not a typical one, 
historically Akka hasn't had official hooks/api for instrumentation and because 
of that people that wanted to add instrumentation had to resort to methods such 
as AOP (aspect orientated programming) and/or JVM bytecode/stack inspection at 
which point all bets are off (inlining or not), i.e. someone could have just 
refactored the methods in question (which they are free to do so since they are 
internal/private) and it would have also broken kamon.
   
   tl;dr We should make an official API for this at some point.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to