Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Fully Compatible
-
v3.4
-
Query 2017-03-27
Description
In order to help users trace output in the logs, the system.profile collection, and db.currentOp() back to their application behavior, we should extend the aggregation command to accept a comment parameter:
db.runCommand({aggregate: "myCollection", pipeline: [{$match: "foo"}], comment: "fooMatch"});
|
We should require at command parsing time that the comment is a string. Its diagnostic display in the logs/profile/currentOp should be consistent with that for the find command's comment parameter, documented here.
Attachments
Issue Links
- is documented by
-
DOCS-10020 Docs for SERVER-28128: Add support for a "comment" parameter to the aggregate command
-
- Closed
-
- is related to
-
DRIVERS-377 Add support for a "comment" parameter to the aggregate command
-
- Closed
-
- related to
-
SERVER-36441 Don't truncate 'comment' command parameter in the slow query logs
-
- Backlog
-