newrelic
Version:
New Relic agent
88 lines (81 loc) • 1.41 kB
JavaScript
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const DB_OPS = [
'addUser',
'authenticate',
'collection',
'collectionNames',
'collections',
'command',
'createCollection',
'createIndex',
'cursorInfo',
'dereference',
'dropCollection',
'dropDatabase',
'dropIndex',
'ensureIndex',
'eval',
'executeDbAdminCommand',
'indexInformation',
'logout',
'open',
'reIndex',
'removeUser',
'renameCollection',
'stats',
'_executeInsertCommand',
'_executeQueryCommand'
]
const COLLECTION_OPS = [
'aggregate',
'bulkWrite',
'count',
'createIndex',
'deleteMany',
'deleteOne',
'distinct',
'drop',
'dropAllIndexes',
'dropIndex',
'ensureIndex',
'findAndModify',
'findAndRemove',
'findOne',
'findOneAndDelete',
'findOneAndReplace',
'findOneAndUpdate',
'geoHaystackSearch',
'geoNear',
'group',
'indexes',
'indexExists',
'indexInformation',
'insert',
'insertMany',
'insertOne',
'isCapped',
'mapReduce',
'options',
'parallelCollectionScan',
'reIndex',
'remove',
'rename',
'replaceOne',
'save',
'stats',
'update',
'updateMany',
'updateOne'
]
const GRID_OPS = ['put', 'get', 'delete']
const CURSOR_OPS = ['nextObject', 'next', 'toArray', 'count', 'explain']
module.exports = {
COLLECTION_OPS,
CURSOR_OPS,
DB_OPS,
GRID_OPS
}