I am having the latest version of Elastic Stack & Java APM agent.
Everything is working fine, but when I am open trace sample I always get No stack trace available in Span details whereas I would like to get all query details there.
I have added span_frames_min_duration setting, but still the same. I am getting the below warnings in tomcat catalina.out :
2020-07-29 14:01:39,841 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.ConnectionImpl uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-29 14:01:39,892 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.PreparedStatement uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-29 14:01:39,917 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.StatementImpl uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-29 14:01:39,941 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.ServerPreparedStatement uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-29 14:14:13,715 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.thoughtworks.xstream.core.util.CompositeClassLoader uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-29 14:14:13,795 [main] WARN co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.thoughtworks.xstream.core.util.ClassLoaderReference uses an unsupported class file version (pre Java 5) and can't be instrumented. Consider updating to a newer version of that library.
I tried the [src/github.com/elastic/apm-agent-java/elastic-apm-agent/target/elastic-apm-agent-1.18.1.RC1-SNAPSHOT.jar] package, but still nothing. I could see the below warnings now :
2020-07-30 11:58:54,003 [main]WARNco.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.ConnectionImpl uses an unsupported class file version (pre Java 4}) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-30 11:58:54,046 [main]WARNco.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.PreparedStatement uses an unsupported class file version (pre Java 4}) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-30 11:58:54,068 [main]WARNco.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.StatementImpl uses an unsupported class file version (pre Java 4}) and can't be instrumented. Consider updating to a newer version of that library.
2020-07-30 11:58:54,088 [main]WARNco.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - com.mysql.jdbc.ServerPreparedStatement uses an unsupported class file version (pre Java 4}) and can't be instrumented. Consider updating to a newer version of that library.
30-Jul-2020 12:00:23.504WARNING [main] org.apache.tomcat.jdbc.pool.ConnectionPool.checkPoolConfiguration maxIdle is smaller than minIdle, setting maxIdle to: 10
30-Jul-2020 12:00:46.452WARNING [main] org.apache.tomcat.jdbc.pool.ConnectionPool.checkPoolConfiguration maxIdle is smaller than minIdle, setting maxIdle to: 10
2020-07-30 12:01:12,514 [http-nio-8080-exec-4]WARNco.elastic.apm.agent.impl.transaction.Span - Max spans (1000) for transaction 'ProductListResource#getProductList' 00-96c6c5bb672ca66310d767f2302c314c-133189f586389a7f-01 (7812a4d2) has been reached. For this transaction and possibly others, further spans will be dropped. See config param 'transaction_max_spans'.
If your MySQL driver is compile with Java lower than 1.4 - this is expected.
If you upgrade the driver to one compiled with 1.4, you need to use the snapshot I provided above, as elastic-apm-agent-1.18.1.RC1-SNAPSHOT.jar only instruments classes compiled with 1.5 or higher.
If you upgrade the driver to one compiled with 1.5 or higher - it should work.
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.