lumigo-node icon indicating copy to clipboard operation
lumigo-node copied to clipboard

feat: MongoDB 4.x support

Open mmanciop opened this issue 2 years ago • 1 comments

  • Added support for MongoDB 4.x
  • Improved extender.js to be able to wrap functions that are constructors (which is needed by MongoDB to ensure that the monitorCommands flag is set in the client on instantiation

TODOs:

  • Tests + Itests
  • Support for detecting failures and timeouts on connection

mmanciop avatar Oct 15 '22 07:10 mmanciop

In reality is probably better to pass an option to hook in case we wrap a constructor and invoke the wrapped function precisely once, as we do not know whether there are side effects. After all, we should always know whether the wrapped function is a constructor or not.

mmanciop avatar Oct 15 '22 13:10 mmanciop