-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Replication
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When running the serverStatus command, metrics about write concern are found under metrics.getLastError. This is because, historically, write concern success was checked using the getLastError command, which would return the error status of the previous write command.
However, this command has been deprecated since MongoDB 5.1 (almost five years ago) and without the aformentioned historical context, it is not obvious that this metrics.getLastError document would be related to write concern.
We should deprecate metrics.getLastError, offer a more aptly-titled metrics.writeConcern (or similarly-named) document that duplicates all of the metrics in getLastError, and audit the codebase for similar places where getLastError is being used.
- related to
-
SERVER-125881 Export Replication metrics in ServerStatus to OTEL
-
- Closed
-