OK, I don't remember we enable RETRANSFORMATION.
And I remember we had a discussion before, and feedback from developers of
APM vendors, RETRANSFORMATION is a super bad idea in the product
environment. (Sorry I can't tell you the source)

Sheng Wu 吴晟
Twitter, wusheng1108


Li BingLong(智能平台) <[email protected]> 于2021年1月23日周六 下午9:53写道:

> > If you want to show the transform failure, it is fine to open that always
> > as an error level log, meanwhile, don't crash the monitored service.
> > And you don't need a config to open this, we should warn the users about
> > this always.
>
>
>
> I mean the following code
>
> agentBuilder.type(pluginFinder.buildMatch())
>             .transform(new Transformer(pluginFinder))
>             .with(AgentBuilder.RedefinitionStrategy.RETRANSFORMATION)
>             .with(new Listener())
>             // if we don’t add this code, the listener does not show any
> error
>             .disableClassFormatChanges()
>             .installOn(instrumentation);
>
> https://github.com/raphw/byte-buddy/issues/871#issuecomment-635204898
>
>

Reply via email to