sofa-tracer icon indicating copy to clipboard operation
sofa-tracer copied to clipboard

基于SOFAArk实现类加载器加载外置的SofaTracer的Spring Boot Starter插件

Open SoftwareKing opened this issue 2 years ago • 3 comments

基于SOFAArk实现类加载器加载外置的SofaTracer的Spring Boot Starter插件,这样也能实现SofaTracer插件的升级自主可控不影响业务 @quaff @khotyn @nobodyiam @jjtyro @ujjboy

SoftwareKing avatar May 11 '22 01:05 SoftwareKing

SofaTracer

It's not a good idea

  1. Importing and exporting classes by SofaTracer itself makes relationships complicated and difficult to maintain

  2. Is there any particular scenario that requires a separate hot upgrade of the SofaTracer plugin, because introducing SOFAArk would complicate the business runtime structure

  3. SOFAArk mainly solves problems in two scenarios: 1. Dependency conflict; 2. Merge deployment; The logic of isolation is semantically independent, with plugins depending on Core and other components

glmapper avatar May 11 '22 02:05 glmapper

用spring boot类加载器,加载外置的Spring Boot Starter呢?不需要热加载 @glmapper 你可以理解只加载外置的Spring Boot starter即可

SoftwareKing avatar May 11 '22 03:05 SoftwareKing

这个场景还是挺少的, @SoftwareKing 可以提供 PR 和 demo 来验证这个场景的有效性吗?相比于动态加载单个插件带来的问题,recompiler & redeploy 可能更简单

glmapper avatar Aug 11 '22 04:08 glmapper

这个问题不在 trace 组件部分讨论,可以在 sofa-ark 中继续讨论此场景 @SoftwareKing

glmapper avatar Aug 29 '22 06:08 glmapper