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: support instrumenting mongodb@6 #3596
Conversation
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/mongodb/node-mongodb-native/releases) - [Changelog](https://github.com/mongodb/node-mongodb-native/blob/main/HISTORY.md) - [Commits](mongodb/node-mongodb-native@v5.1.0...v6.0.0) --- updated-dependencies: - dependency-name: mongodb dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
new |
Actually I think it is from v15.0.0:
The minor versions at node.green can be misleading, because the table doesn't necessarily show the particular minor version where something changed. The compatibility table on MDN often shows the specific node version: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment#browser_compatibility |
Thanks for pointing the right version @trentm. I'll change the version checking to |
Testing locally there is a hang in mongodb.test.js with this update:
|
Ah, it hangs because our mongodb instr is explicitly doing nothing for mongodb@6 and mongodb.test.js is using the poor This fixes it, as a start: diff --git a/lib/instrumentation/modules/mongodb.js b/lib/instrumentation/modules/mongodb.js
index 81cd39db..bdaee49b 100644
--- a/lib/instrumentation/modules/mongodb.js
+++ b/lib/instrumentation/modules/mongodb.js
@@ -17,7 +17,7 @@ const HOSTNAME_PORT_RE = /^(.+):(\d+)$/;
module.exports = (mongodb, agent, { version, enabled }) => {
if (!enabled) return mongodb;
- if (!semver.satisfies(version, '>=3.3 <6.0')) {
+ if (!semver.satisfies(version, '>=3.3 <7.0')) This'll no longer be a "bump a dev dep" change, though. It'll be a "add support for mongodb@6". |
Bumps mongodb from 5.1.0 to 6.0.0.
Release notes
Sourced from mongodb's releases.
... (truncated)
Changelog
Sourced from mongodb's changelog.
... (truncated)
Commits
e57b738
chore(main): release 6.0.0 [skip-ci] (#3762)e70826a
docs: generate docs from latest main [skip-ci] (#3744)df1b4f2
docs(NODE-5560): add v6 upgrade guide (#3844)7bef363
feat(NODE-5584)!: adopt bson v6 and mongodb-client-encryption v6 (#3845)05d2725
fix(NODE-5592): withTransaction return type (#3846)91152b9
chore(NODE-5581): pull in bson alpha.1 and mongodb-legacy main (#3843)ecb2e20
chore: fix alpha version guardea2d60a
refactor(NODE-5514): make FLE logic use async-await (#3830)a17b0af
feat(NODE-5484)!: mark MongoError for internal use and remove Node14 cause as...33c86c9
feat(NODE-5566): add ability to provide CRL file via tlsCRLFile (#3834)Maintainer changes
This version was pushed to npm by dbx-node, a new releaser for mongodb since your current version.
Most Recent Ignore Conditions Applied to This Pull Request
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Note: Dependabot was ignoring updates to this dependency, but since you've updated it yourself we've started tracking it for you again. 🤖
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.