-
Notifications
You must be signed in to change notification settings - Fork 598
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
Add instrumentation for OpenSearch #2228
Comments
Hi @Earlopain - thank you for this feature request! The maintainers will discuss adding instrumentation for OpenSearch and keep you posted here. Please feel free to direct other OpenSearch users here to lend their support (via emoji and/or comments) for the feature. |
Hi @Earlopain - We discussed this one as a team and have added OpenSearch instrumentation to our roadmap, with plans to complete it between January and March 2024. We will update you when OpenSearch instrumentation becomes available. Thanks again for this feature request! |
That's awesome, much appreciated for the update (: |
Hi again @Earlopain. An update here—our team had to shift some priorities around and unfortunately we aren't able to complete OpenSearch instrumentation within the originally planned timeframe. That said, it is still on our roadmap for this year and we will contiue to keep you in the loop! |
Time really does fly. Thank you for that update, I appreciate it 👍 |
We are currently in the process of migrating to OpenSearch, but the lack of instrumentation is causing some delays. Could you please provide an estimated timeline for when the OpenSearch instrumentation will be added? Additionally, if there are any workarounds available in the meantime, that would be very helpful. |
@praveen-ks As for workarounds, the main workaround for a situation where a gem lacks instrumentation is to add custom instrumentation using the API. The most useful one to start with would probably be We will update this issue in the future when we add the instrumentation. |
Thanks @tannalynn for the references. I have come up with below code to make newrelic work opensearch, let me know if I am missing anything.
|
Hi @praveen-ks, thanks for putting this together! What you have looks good! There are two things I'd recommend changing.
We updated the Elasticsearch instrumentation recently to have two improvements that I don't see in your OpenSearch example:
Here's the latest version of the Elasticsearch instrumentation if you're interested in the details: https://github.com/newrelic/newrelic-ruby-agent/blob/dev/lib/new_relic/agent/instrumentation/elasticsearch/instrumentation.rb You also inspired me to pull together the instrumentation to make things more dynamic. If you'd like to test out the WIP instrumentation, you can do so by installing the agent from the
The code is still in process at #2796. My remaining known TODOs are related to Docker configuration in the development and CI environments. If you decide to test it out, please let us know how it goes! We'd love to know how we can improve the telemetry for OpenSearch to make it more valuable. |
@kaylareopelle Thanks for the inputs 👍 I won't be able to test it because I am currently using gem version |
@kaylareopelle I am using newrelic_ruby_agent version Because I have tested the above version code and was working fine. Just don't want more iterations. |
@praveen-ks - No problem! Thanks for the update! If the code was working fine on your machine, then yes, the only change would be to |
Feature Description
OpenSearch is a fork of Elasticsearch spearheaded by Amazon. Elasticsearch instrumentation was added with #1469. Since this is a fork, much of the work necessary will be highly similar to what is currently present, for example the
perform_request
method is found in OpenSearch::Transport::Client.Describe Alternatives
None
Priority
We are currently in the process of migrating to OpenSearch and loosing instrumentation is the only downside. Of course the instrumentation for Elasticsearch was added rather recently and we have been doing fine before that, so I'll put this as "Really Want".
The text was updated successfully, but these errors were encountered: