lumigo-node
lumigo-node copied to clipboard
feat: MongoDB 4.x support
- 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
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.