> Yes, this rule always exists. So, the instrumentation target can't be used
> in the agent core booting stage.


The instrumentation target can be used as long as we don’t change the class 
structure,such as adding field, changing method signature.


> If you don't add a field, this class isn't `EnhancedInstance`. All
> interceptors would not work.

We will have a EnhancedInstance of Runnable that is the param of 
ThreadPoolExecutor#execute.


> In my mind, I still don't like the idea of
> `ThreadPoolExecutor` instrumentation, it is really widely used, and
> manipulating it is a high-risk operation.

It’s high-risk but less Invasive for user code.We can give the ability but user 
choose to use it or not.

Reply via email to