-
Notifications
You must be signed in to change notification settings - Fork 390
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
fallback for empty cursor.collection #193
Conversation
Having the same problem with |
Thanks for this PR. Unfortunately supporting the mondgodb >= 2.0 is a bit more complicated than this simple change. I am working on a full rewrite of our internal apis including the whole mongo instrumentation. We are hoping to release this very soon, and it should resolve the issues you are seeing in newer versions of the mongo driver. This is still a couple of weeks from release, but we are actively working on it. best, |
Thanks a lot for your feedback
|
Isn't there some way to just not break our apps even without supporting mongodb>=2.0? |
We are still not quite ready to officially release the version of the node agent that has the fix for mongo 2.0 in it, but if you are interested in getting access to a beta version, please shoot me an email at mhayes@newrelic.com |
Is new release including fix for this? |
Yep, should be fixed. Please let me know if you run into any additional
|
Works great thanks a lot. |
that sounds odd. If you send me a link (mhayes@newrelic.com) I'll be happy to take a look |
…c34296f32e8ad79db7 [Snyk] Security upgrade newrelic from 10.3.1 to 10.3.2
…c34296f32e8ad79db7 [Snyk] Security upgrade newrelic from 10.3.1 to 10.3.2
Since I upgraded to node's MongoDB connector v2 (specifically, my package.json says "mongodb": "^2.0.13") I started getting a fatal error
The errors line is
and it seems that
cursor.collection
is empty now. BUT, I saw that cursor.ns has the formdatabaseName.collectionName
, so I wrote a fallback to use that property instead if needed.