|
Sounds like a good idea to rename this field in serverStatus and update the docs. I don't believe many users are relying on the name of this sub-section, so shouldn't be disruptive to users looking for the old name.
|
|
Thanks! I think I missed it because it appears getLastError, which is a legacy artifact; the app I was debugging was using bulk writes. Would it make sense to rename this section, e.g. "writeConcern"?
|
|
I think the info you're looking for is already present and has been there since v2.4.
rs1:PRIMARY> db.serverStatus()
|
....
|
"metrics" : {
|
.....
|
"getLastError" : {
|
"wtime" : {
|
"num" : 0,
|
"totalMillis" : 0
|
},
|
"wtimeouts" : NumberLong(0)
|
},
|
|
Generated at Thu Feb 08 03:46:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.