pinpoint-apm / pinpoint

APM, (Application Performance Management) tool for large-scale distributed systems.
https://pinpoint-apm.gitbook.io/
Apache License 2.0
13.41k stars 3.75k forks source link

Not getting full call tree in Spring webflux (netty server) application #7858

Open mohit24 opened 3 years ago

mohit24 commented 3 years ago

Pinpoint Version: 2.2.2 Java Version: 1.8 Spring Boot version: 2.3.4.RELEASE

We are using Spring Webflux with netty server.

Call tree is incomplete. Only security context and filter class's methods are being logged in tree. Once the request reaches the controller method after that nothing is being logged in call tree.

as per the doc: [https://github.com/pinpoint-apm/pinpoint/blob/master/plugins/spring-webflux/README.md]()

I have uncommented following lines in /pinpoint-agent/profiles/release/pinpoint.config file:

profiler.spring.beans.2.scope=post-processor profiler.spring.beans.2.base-packages= profiler.spring.beans.2.name.pattern= profiler.spring.beans.2.class.pattern= profiler.spring.beans.2.annotation=org.springframework.stereotype.Controller,org.springframework.stereotype.Service,org.springframework.stereotype.Repository

Screenshot 2021-05-11 at 11 26 19 PM

mohit24 commented 3 years ago

@emeroad Please help. I am stuck here.

lijian69017436 commented 3 years ago

image image Ran into the same problem As long as the request is modified in the filter, the next level link cannot be obtained

mohit24 commented 2 years ago

@lijian69017436 Did you find any solution for it? If yes, please share your config file here.

mohit24 commented 2 years ago

@emeroad Any fix for this yet?

emeroad commented 2 years ago

Can you provide a demo project? We need more detailed information.

mohit24 commented 2 years ago

@emeroad Please check. Not able to see a complete trace of a transaction. For example, method calls in SecurityContextRepository.java, MdcFilter.java, ResourceListener.java files are not visible.

In the actual project, call to SecurityContextRepository and MdcFilter.java are visible but calls to methods in various service classes are not visible. This is very absurd behavior. Not able to figure out.

Command to execute Jar: nohup java -jar -javaagent:/home/pinpoint-agent/pinpoint-bootstrap-2.2.2.jar -Dpinpoint.applicationName=demo -Dpinpoint.agentId=demo-app1 demo-0.0.1-SNAPSHOT.jar &> nohup.out &

Sharing the source code. JAR can be found inside target folder.

demo.zip

mohit24 commented 2 years ago

@emeroad Did you get a chance to look into it?