|
Do you only want to track this and not the other properties of an update result? Seems like you might want to track inserts which require a transformation or not (a replacement), or inserts without index, or errors, or number of documents updated, or the number of no-ops, matches, updates with no index update, bitblts, etc....
Note, some of these already exist in the metrics tree:
"document" : {
|
"deleted" : NumberLong(0),
|
"inserted" : NumberLong(1),
|
"returned" : NumberLong(0),
|
"updated" : NumberLong(0)
|
},
|
"operation" : {
|
"fastmod" : NumberLong(0),
|
"idhack" : NumberLong(0),
|
"scanAndOrder" : NumberLong(0)
|
},
|
"queryExecutor" : {
|
"scanned" : NumberLong(0),
|
"scannedObjects" : NumberLong(0)
|
},
|
"record" : {
|
"moves" : NumberLong(0)
|
},
|
|