-
Notifications
You must be signed in to change notification settings - Fork 544
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
feat(mongodb): support v5 #1451
feat(mongodb): support v5 #1451
Conversation
|
Actually we tested a bit more today and noticed that the details of the queries are not present (e.g. the |
I'm waiting for it. |
c0691c1
to
34e8bc0
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1451 +/- ##
==========================================
- Coverage 96.13% 95.32% -0.82%
==========================================
Files 14 16 +2
Lines 906 1005 +99
Branches 197 208 +11
==========================================
+ Hits 871 958 +87
- Misses 35 47 +12
|
34e8bc0
to
e9118d3
Compare
For what I said before:
Nevermind, I thought it automatically included all the parameters of I think the PR can be reviewed. |
@osherv any update on this? v5 is working similar to v4 except for dropping callback support |
I'm not an approver, but this looks good to me (there are currently merge conflicts though). We'd love to see this merged. |
I quickly checked but it seems there are some tests failing now after fixing the conflicts. |
I've adapted the code based on the changes on main. The unit tests are all passing locally (with tav). I had to use the same database name for all the tests, as right now the instrumentation only allows one poolName (and not one per connection). That's likely something to fix in another issue/PR. @haddasbronfman Hello, sorry to ping you like that. I see you checked/worked on another PR for MongoDB. Would it possible to review this one when you have some time ? Thanks ! |
@legendecas or @dyladan could we get a review here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions from my side. 🙂
@haddasbronfman I know you've been contributing to this instrumentation lately, would you mind taking a look? 🙂
plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts
Outdated
Show resolved
Hide resolved
plugins/node/opentelemetry-instrumentation-mongodb/test/mongodb-v4-v5.metrics.test.ts
Outdated
Show resolved
Hide resolved
@pichlermarc Thanks for the review and for maintaining the branch up-to-date with master 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thank you very much for handling this !!
only one comment from my side.
plugins/node/opentelemetry-instrumentation-mongodb/package.json
Outdated
Show resolved
Hide resolved
Hi, any chance we could get this reviewed? My company's traces are broken until we get this released |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks 🙂
Waiting for one more CI run before merging 🙂
Looks like there's a problem with our workflows - we'll have to take care of #1541 first to make CI pass. Sorry for the delay. 😞 |
Which problem is this PR solving?
@opentelemetry/instrumentation-mongodb
: Handle version 5 of MongoDB NodeJS DriverShort description of the changes
package.json
and.tav.yml
)test-new-versions
totest-v4
(and adapted.tav.yml
for it)Notes
Feel free to comment/adapt/suggest things. I'm still learning on this kind of stuff 😉