-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: 4.2.5
-
Component/s: Write Ops
-
None
-
Cluster Scalability
-
Repl 2020-04-20
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When a document is mutated, it would be very handy to be able to audit what caused the mutation to happen. However, the oplog doesn't currently include much client context.
Ideally, clients could add some context, eg:
db.runCommand({
insert: mycoll,
documents: [{_id: "myid"}],
oplogContext: {"some": "document}
})
And then this context could appear in the oplog:
{
"ts": Timestamp(1585854690, 1),
"t": NumberLong(1),
...
"context": {"some": "document}
}
- related to
-
SERVER-78739 Add ability for operations to be annotated with something that can be seen and filtered in change stream
-
- Backlog
-