Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable instrumentation for ES client versions with native instrumentation #3303

Merged
merged 5 commits into from
Sep 6, 2023

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.

@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
11 checks passed
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 <[email protected]>


---------

Signed-off-by: Alexander Wert <[email protected]>
Co-authored-by: Jonas Kunz <[email protected]>
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