-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Logging
-
None
-
5
-
-
Not Needed
-
Not Needed
-
This ticket was split from DRIVERS-1673, please see that ticket for a detailed description.
Acceptance Criteria
Implementation Requirements
- Implement the logging of the following events from the CLAM spec on component = 'command' and at the debug level
- Command Started
- Command Succeeded
- Command Failed
- Ensure that log messages above are appropriately redacted if the commands in question are sensitive
- If command is handshake, don't log (only add logger to Connection class after connection is established)
- Avoid cloning / flag it if needed
- Ensure this work aligns with ModernConnection/Connection work ongoing in CSOT currently
Testing Requirements
- Unskip CLAM spec tests that were skipped in
NODE-4685 - Implement prose tests
- Test default truncation limit
- Test explicitly configured truncation limit
- Language specific truncation limits - investigate further
- depends on
-
NODE-4849 Add Typescript support for mongodbLogPath in client options
- Closed
- is related to
-
NODE-5318 Investigate improvements or removal of command monitoring object cloning
- Backlog
-
NODE-4849 Add Typescript support for mongodbLogPath in client options
- Closed
- split from
-
DRIVERS-1673 Add log messages to Command monitoring spec
- Implementing