appmetrics icon indicating copy to clipboard operation
appmetrics copied to clipboard

Documentation: MongoDB probe type changed from `mongo` -> `mongodb`

Open dm03514 opened this issue 6 years ago • 0 comments

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?

dm03514 avatar Dec 13 '18 20:12 dm03514