-
Notifications
You must be signed in to change notification settings - Fork 373
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
MongoDB Ruby client driver compatibility #729
Comments
We will try dd-trace-rb version 0.20.0 or above to see if PR #704 improves the situation |
The compatibility issues I pointed out are officially described in the following pages https://docs.datadoghq.com/tracing/languages/ruby/#compatibility |
Confirmed that ddtrace version 0.21.0 suffers this issue too |
@ricbartm Thanks for the heads up. Just to clarify, this is a request to support |
Hello @delner . Thanks for the answer. The sort answer is yes, please. Nevertheless, I'd like to know if from your experience there is any workaround that we could apply/try. I also understand the answer is "nope, we need to patch every of the public methods of the newer MongoDB client because it changed way too much since 2.4". I guess this issue I'm describing will get more relevant with time, given that MongoDB server 3.4 end of life end on September 2019, so as soon as people using the combo MongoDB+Ruby+DataDog APM, they will find APM rendering useless on the MongoDB query observability part. Thanks again! |
We have been able to reproduce the issue under Unicorn web server, but not under a standalone Rails console. So, here is what is happening:
We need to find a way to re-patch MongoDB client during the after_fork. We'll start forking the tag 0.21.0 of the gem and implementing a solution that works for us. We have plans have that change reviewed internally with aims to be accepted upstream. Kudos to @sgirones for the findings!! |
Excellent write-up; thanks a ton for this! The explanation does make a lot of sense, and it's a downside of In the interim, if you do end up creating a patch, I'd be very happy to look at it. |
A fix has been merged to |
Hello folks!!
We are facing some trouble with DataDog dd-trace-rb and out MongoDB integration from a Ruby service we operate.
We are running MongoDB Server 3.4, MongoDB Ruby client version 2.4 and dd-trace-rb version 1.9.0. The situation is as follows:
We tried the upgrade anyways, and we have seen APM spans are lost on the integration of our service with MongoDB server, loosing a lot of visibility. MongoDB Server 3.4 support end-of-life ends in September 2019 (6 months from now).
This ticket aims to make this issue more visible to other MongoDB-from-ruby users and gather advice/support for other folks suffering this issue. In parallel I've opened a official support ticket with DataDog to see what alternatives we have.
The text was updated successfully, but these errors were encountered: