function initialize(agent, mongodb, moduleName, shim) {
  if (!mongodb) {
    return
  }

  const mongoVersion = shim.pkgVersion
  if (semver.satisfies(mongoVersion, '<4.0.0')) {
    shim.logger.warn(
      'New Relic Node.js agent no longer supports mongodb < 4, current version %s. Please downgrade to v11 for support, if needed',
      mongoVersion
    )
    return
  }

  shim.setDatastore(shim.MONGODB)
  instrumentV4(shim, mongodb)
}
Registers the query parser, and relevant instrumentation
based on version of mongodb

@param {Agent} agent
@param {object} mongodb resolved package
@param {string} moduleName name of module
@param {Shim} shim