How does apm decides when does it needs to trace the methods

How does APM decides when does it needs to trace the java methods using java agent. Can those value be finetuned so that we can get even more trace informations?

Check out this part of the docs: https://www.elastic.co/guide/en/apm/agent/java/current/java-method-monitoring.html

Let me know if you have any further questions.

I have this notification in few of the apm stacks.


Is there anywhere documented what is the default number of items in a trace and if that number can be configured then how to do it?

There's a setting for both the agent (transaction_max_spans) and the UI (xpack.apm.ui.maxTraceItems).