pinpoint-apm / pinpoint

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

Getting additional call stack information in the jar plugin #8381

Open sledwich opened 2 years ago

sledwich commented 2 years ago

I am using the Jar Plugin to trace calls in my java code.

I have set profiler.entrypoint and this is correctly started tracing the method in entrypoint, but in pinpoint when I attempt to view the data recorded, I can see the entrypoint method being correctly traced.

But the method traced does not show any information for any methods called by the entrypoint method.

For example, if I use profiler.entrypoint=myclass.mymain, this correctly traces the entrypoint in the pinpoint applcation. But if myclass.mymain makes a call to myclass.method2() I do not see this in the trace.

If I add myclass.method2() into the profiler.entrypoint (comma separated list), this works and adds the information into the call stack for myclass.mymain() BUT:

  1. it adds the call to myclass.method2 into the list of endpoint calls, which I believe is not correct
  2. no other calls are traced, for example if myclass.method2 makes a call to myclass.method3 then is also missing.

I would appreciate any information on how to get a full call stack in the trace. Thank you inadvance.

emeroad commented 2 years ago

APM does not track all call stacks. If you need all call stack, use the the profiling tool.