Thus, if I understand correctly, you get the proper log correlation working when using the programmatic self-attach but not when using -javaagent option ?
It seems that you forgot the co.elastic.apm prefix for the following configuration options: environment, profiling_inferred_spans_enabled and enable_log_correlation
You can check the configuration read by the agent by setting log_level=debug, this will output what configuration is applied by the agent at agent startup. With that, you should be able to see that the options without the prefix listed above are just ignored.
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.