Skip to content

Conversation

@AlexanderWert
Copy link
Member

Fixes #3235

elastic/elasticsearch-java#652 introduced native instrumentation into the ES client.
We need to disable agent instrumentation for versions with native instrumentation.

The native instrumentation introduced the class co.elastic.clients.transport.instrumentation.Instrumentation in the ES client. This PR adds a check for the presence of that class.

…instrumentation

Signed-off-by: Alexander Wert <alexander.wert@elastic.co>
@AlexanderWert
Copy link
Member Author

TODO: we need to make dependabot stop bumping the ES client versions from 8.10+ on

@JonasKunz JonasKunz requested review from a team and SylvainJuge and removed request for JonasKunz September 5, 2023 14:52
@JonasKunz JonasKunz merged commit cb05873 into elastic:main Sep 6, 2023
schikin pushed a commit to schikin/apm-agent-java that referenced this pull request Oct 11, 2023
…ation (elastic#3303)

* Disable ES client instrumentation for ES client versions with native instrumentation

Signed-off-by: Alexander Wert <alexander.wert@elastic.co>


---------

Signed-off-by: Alexander Wert <alexander.wert@elastic.co>
Co-authored-by: Jonas Kunz <jonas.kunz@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Disable ES instrumentation when a language client with included OTel instrumentation is used

3 participants