FrankChen021 / bithon

An observability platform mainly for Java
Apache License 2.0
15 stars 4 forks source link

Use Annotation.InterceptorIndex to replace Annotation.Interceptor #577

Closed FrankChen021 closed 1 year ago

FrankChen021 commented 1 year ago
  1. Share the same mechanism with the dynamic installer
  2. The latter adds static initializer and adds fields to existing classes, this requires REBASE strategy, and if a class is loaded before the instrumentation, the transformation fails. For example, if there're two more more other agents loaded before bithon's agent, of course the REBASE strategy fails.
  3. Also AdviceAnnotation.TargetMethod needs to be removed
FrankChen021 commented 1 year ago

Fixed by #579 leaving 3 unresolved. It can be addressed separately