tafli
tafli

Reputation: 162

Open-Telemetry and autoinstrumentation of project libraries

I'm using a Java-Application and trying to use the OpenTelemetrys Java autoinstrumentation. It looks like, that the autoinstrumentation does only work ond code directly call from the application itself and dependencies are not instrumented?

The project uses a dependency which itself uses Apache HttpClient for sending Requests to a remote server. These requests however seem not to be instrumented. When doing a request directly in my application as well, it works as expected.

Is there a way to tell the agent, that a specific dependency has to be instrumented as well?

Upvotes: 0

Views: 459

Answers (1)

bratkartoffel
bratkartoffel

Reputation: 1177

Instrumentation of Apache HttpClient works fine for me, even when using transitive dependencies except for the newer httpclient5. After a quick look on the sources of the instrumentation agent it seems only HttpClient 4 is supported at the moment

Upvotes: 1

Related Questions