I am using the current Java APM Agent to instrument a desktop java app (not a web server). I can see transactions for some runnable classes I recognize, but I am also seem a few like 1#run and 2#run. Not sure what those are exactly?
Perhaps they are just anonymous classes? Or maybe just instance of Runnable itself?
In order to know where does those methods come from, you can enable debug logging with log_level=debug, then restart your application. The lines that contain method match should give you a hint on the class where this method is defined, here it's very likely to be anonymous inner classes due to the numeric pattern.
If you want more deterministic naming for transactions, you can use the Annotation API to make that more explicit.
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.