When using Java 8 + Payara (Micro) 5.191, I noticed that spans are automatically created for interceptor classes from Weld:
They appear when debugging too:
It would be cool if they could be ignored. Unfortunately they are generated classes and have the same package name as the classes that I want to trace.
Also, is it possible that the APM agent causes "this" to not be viewable in the debugger?
Kibana version:
7.0.0 Elasticsearch version:
7.0.0 APM Server version:
7.0.0
APM Agent language and version:
java latest Browser version:
n/a Original install method (e.g. download page, yum, deb, from source, etc.) and version:
docker Fresh install or upgraded from other version?
fresh
There is a way to ignore specific classes, but it requires you to identify the class name patterns of what you want to include/exclude anyway, so you might as well use the trace_methods config option with more specific/narrowed-down patterns and not a very general root package. Note that limiting the number of classes/methods being traced is highly recommended in any case, as it may increase overhead significantly without necessarily providing a lot more value. If you can find the narrowest-informative context for tracing, you would get the best value of this. Typically, this feature is best used for tracing specific methods.
What changed in debugging? The stack in the screenshot doesn't seem to be related to the agent.
Not sure, I will need the full context for that. What is the exact breakpoint related to this screenshot? If it's a static method, or a constructor, for example, this would not be available. Does it behave differently on the same breakpoint with and without the agent?
@maxant which version are you using? Also, please send your trace_methods configuration and any other tracing-related configuration you are using.
Thanks.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.