I am using SLF4J for logging in a multithreaded application. In one instance, I am interrupting a Thread (using Thread.interrupt()). When this Thread is then using SLF4J to log an error, I receive the following exception from the APM agent (version 1.31.0):
Good question. My first assumption was that a log entry of type ERROR by the ElasticAPM agent appertaining on the console would indicate that something is wrong with the agent.
I haven’t observing any issues with the functionality, although I cannot tell for sure if the error has any side-effects or not.
So your take would be that this error can simply be ignored in this case?
Does it continue happening, or just the first time after the interrupt? I think the former would mean the logger doesn't get bytecode transformed, whereas the latter would just lose the odd error from apm
Thus if this issue still happens on your application, upgrading to the next release (1.34.0) when it's available or the latest snapshot (ideally the one from tomorrow or later as it's built daily) should allow you to get rid of it.
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.