The following proposed feature request would allow comments to be added to bulk operations. The comment should behave similar to cursor.comment().
The requested functionality is as follows:
- Allow a configurable comment be added to bulk.execute() commands.
- When using a sharded collection if the bulk operation is directed at more than one shard the same comment should appear for the bulk operation across all shards.
- If a more verbose log level is enabled that shows the individual operation for the bulk operation the same comment should be present on these individual operations.
- The comment should appear in the mongod logs, system.profile and db.currentOp().