scouter-project / scouter

Scouter is an open source APM (Application Performance Management) tool.
Other
2.11k stars 569 forks source link

Spring Cloud Gateway 사용시 연결 추적 문의드립니다. #892

Open shjj0805 opened 2 years ago

shjj0805 commented 2 years ago

Spring cloud gateway(reactive type)에 Spring Cloud Circuit Breaker Resilience4j 적용중인 서비스에 agent.java 2.17.1 최신버전 연결하여 사용중입니다. xlog는 찍히지만 연결 흐름 추적이 안되고 있습니다.

jvm 기동시 아래 오류와 함께 ReactiveSupport로 로드 되었고 SCG 서비스 요청시 [A168] java.lang.NullPointerException 에러 발생합니다.

20220921 08:08:57 [NONE] LoadJarBytes scouter.reactive 30518 bytes 20220921 08:08:57 [A133-0] fail to create reactive support: REACTIVE_SUPPORT_W_COROUTINE java.lang.NoClassDefFoundError: kotlin/coroutines/CoroutineContext java.lang.Class.forName0(Native Method) java.lang.Class.forName(Class.java:348) scouter.agent.proxy.ReactiveSupportFactory.create(ReactiveSupportFactory.java:52) scouter.agent.trace.TraceMain.initReactiveSupport(TraceMain.java:381) scouter.agent.trace.TraceMain.startReactiveHttpService(TraceMain.java:155) org.springframework.web.server.handler.FilteringWebHandler.handle(FilteringWebHandler.java) org.springframework.web.server.handler.WebHandlerDecorator.handle(WebHandlerDecorator.java:56) org.springframework.web.server.handler.ExceptionHandlingWebHandler.handle(ExceptionHandlingWebHandler.java:70) org.springframework.web.server.adapter.HttpWebHandlerAdapter.handle(HttpWebHandlerAdapter.java:248) org.springframework.boot.web.reactive.context.WebServerManager$DelayedInitializationHttpHandler.handle(WebServerManager.java:98) org.springframework.http.server.reactive.ServletHttpHandlerAdapter.service(ServletHttpHandlerAdapter.java:198) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:890) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1789) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.lang.Thread.run(Thread.java:748) 20220921 08:08:57 [SCOUTER] success to create reactive support without coroutine support

scouter에서 아직 지원을 안하는건지 추가 설정 방법이 있는건지 문의 드립니다.

gunlee01 commented 1 year ago

spring cloud gateway에서 연결 흐름 추적은 현재 지원하고 있지 않습니다.