I am using the 1.42 java agent with java 11.
Some of my backend calls are not being traced. I have multiple backends that I use Apache HttpClient 4.5 with. Some are traced and some are not. I took thread dumps and there is a small difference that I don't understand.
This is being traced:
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
my code here
This is not being traced:
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.springframework.ws.transport.http.HttpComponentsConnection.onSendAfterWrite(HttpComponentsConnection.java:121)
The odd difference is that the non-working code (not traced by Elastic APM) has that frame for CloseableHttpClient:55. Unless I'm looking at the wrong source, line 55 is the @ThreadSafe annotation on the class. Everything above CloseableHttpClient.java:107 in both stacks is identical.
Any idea what's going on?
thanks