You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I check the code of com.navercorp.pinpoint.profiler.DefaultAgent, I found it using
private final Logger logger = LoggerFactory.getLogger(this.getClass());
in my option, above code will load the ch.qos.logback.classic.spi.LoggingEvent before the plugins loaded, so the transform method will never be invoked in com.navercorp.pinpoint.profiler.plugin.MatchableClassFileTransformerGuardDelegate via jvm, as jvm think it is already loaded
i also debug the agent, i found the breakpoint in the doInTransform in LogbackPlugin never be catched.
it is a bug? or i have a misunderstand about it?
I use:
spring boot 1.2.6-release
logback 1.1.3
slf4j 1.7.12
The text was updated successfully, but these errors were encountered:
for reference,
Pinpoint core logic uses java logger.
Spring-boot has jul-to-slf4j library as one of its dependencies, and it uses this library to change the java logger handler to logback handler at initialization time.
If the java logger handler is changed like this, all the related logback classes are loaded earlier than expected and the transformation callback is not executed.
When i enable profiler.logback.logging.transactioninfo=true, following the document https://github.com/naver/pinpoint/blob/master/doc/per-request_feature_guide.md, however, the MDC is not added to logger message.
I check the code of com.navercorp.pinpoint.profiler.DefaultAgent, I found it using
private final Logger logger = LoggerFactory.getLogger(this.getClass());
in my option, above code will load the ch.qos.logback.classic.spi.LoggingEvent before the plugins loaded, so the transform method will never be invoked in com.navercorp.pinpoint.profiler.plugin.MatchableClassFileTransformerGuardDelegate via jvm, as jvm think it is already loaded
i also debug the agent, i found the breakpoint in the doInTransform in LogbackPlugin never be catched.
it is a bug? or i have a misunderstand about it?
I use:
spring boot 1.2.6-release
logback 1.1.3
slf4j 1.7.12
The text was updated successfully, but these errors were encountered: