appmetrics
appmetrics copied to clipboard
Documentation: MongoDB probe type changed from `mongo` -> `mongodb`
I tried to disable mongo probe data on a super simple web app but noticed mongo probe data was still being surfaced:
appmetrics.disable('mongo');
monitoring.on('mongo', (data) => {
console.log('mongo');
console.log(data);
});
app.get('/', (req, res) => {
db.collection('test1').find({}, (err, result) => {
res.send('Hello World!');
});
});
Updating the disable to mongodb works as expected. I was wondering if this was the case across versions?