[JAVA-4753] Add log messages to Command monitoring spec Created: 07/Oct/22  Updated: 28/Oct/23  Resolved: 26/Jan/23

Status: Closed
Project: Java Driver
Component/s: Logging
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: PM Bot Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
Duplicate
is duplicated by JAVA-4839 Add a command logging test covering u... Closed
is duplicated by JAVA-4829 Misc Updates to Logging Spec Closed
Issue split
split from DRIVERS-1673 Add log messages to Command monitorin... Implementing
Epic Link: Easier debugging with standardized logging
Quarter: FY23Q4, FY24Q1
Upstream Changes Summary:

DRIVERS-1673:
This ticket depends on the driver having implemented the changes from DRIVERS-1677. It is suggested that drivers do this ticket in tandem with DRIVERS-1677 so that they have a first set of log messages and tests to try out with their logging implementation and unified test runner changes.

Log messages and corresponding tests for command logging were added via this commit.

In summary, drivers will need to:

  • Implement the log messages defined here
  • Run the unified format tests defined here
  • Implement the prose tests defined here

Also, note that the spec was renamed "Command Logging and Monitoring" (we'll see if the acronym CLAM catches on!) and that the spec directory/RST file were renamed to command-logging-and-monitoring, so any scripts that rely on the name to e.g. sync tests will need to be updated.

Documentation Changes: Needed

 Description   

This ticket was split from DRIVERS-1673, please see that ticket for a detailed description.



 Comments   
Comment by Githook User [ 26/Jan/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Add structured logging support for command logging

  • Align command logging messages to specification
  • Add command logging unified tests

JAVA-4752
JAVA-4753
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/2fcd9435df60f131d22ba8b8e9d4d4bb7703fe1e

Comment by Githook User [ 26/Jan/23 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Add isMonitoringConnection boolean to InternalStreamConnection

This will let us ignore messages (for purposes of log message/event generation)
for monitoring connections

JAVA-4752
JAVA-4753
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/fcaf87c0f7399468207fce7d5105eb403a93a0ad

Generated at Thu Feb 08 09:02:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.