This PR ultimately adds more observability tags to the round trip metrics like mongobetween.handle_message and mongobetween.round_trip. New tags include:
command: the Mongo command being run, one of [abortTransaction, aggregate, commandTransaction, count, createIndexes, delete, distinct, drop, dropDatabase, dropIndexes, endSessions, find, findAndModify, getMore, insert, isMaster, listCollections, listIndexes, listDatabases, mapReduce, update]
collection: the collection the command is running on, if any (not applicable to non-collection commands, e.g. dropDatabase)
Previously mongobetween was missing parsers for operations like OP_UPDATE, OP_INSERT, OP_KILL_CURSORS, and OP_DELETE. These have been implemented in order to capture them in metrics.
This PR ultimately adds more observability tags to the round trip metrics like
mongobetween.handle_message
andmongobetween.round_trip
. New tags include:command
: the Mongo command being run, one of[abortTransaction, aggregate, commandTransaction, count, createIndexes, delete, distinct, drop, dropDatabase, dropIndexes, endSessions, find, findAndModify, getMore, insert, isMaster, listCollections, listIndexes, listDatabases, mapReduce, update]
collection
: the collection the command is running on, if any (not applicable to non-collection commands, e.g.dropDatabase
)Previously mongobetween was missing parsers for operations like
OP_UPDATE
,OP_INSERT
,OP_KILL_CURSORS
, andOP_DELETE
. These have been implemented in order to capture them in metrics.