I know there is a chance to support this. The tricky thing would be, how carefully you need to be when writing this plugin. Because, the core at that moment could be not ready.
Sheng Wu 吴晟 Twitter, wusheng1108 Li BingLong(智能平台) <[email protected]> 于2021年1月4日周一 下午4:18写道: > So is it supported or valuable to add a ThreadPoolExecutor plugin? > I have tried this, some log not important will appear in stdout. > > > > 在 2021/1/4 下午3:15,“Sheng Wu”<[email protected]> 写入: > > True, we can't instrument the class the agent core is using already. > This is a logic conflict. If we allow the instrumentation activated > before > the configuration initialization and core service booting, you have a > chance to face runtime NPE or race condition. > The core developer and plugin developer would expect the booting > sequence > will be unexpected random, and determined by the monitored app codes. > > Sheng Wu 吴晟 > Twitter, wusheng1108 > > > > > >
