[CSHARP-2548] ToString method in ServerDescription should include LastUpdateTimestamp Created: 15/Mar/19  Updated: 28/Oct/23  Resolved: 01/Apr/19

Status: Closed
Project: C# Driver
Component/s: Connectivity
Affects Version/s: 2.8.0
Fix Version/s: 2.8.1

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Dmitry Lukyanov (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The ToString method of ServerDescription purposely omits some of the fields of the class in order to keep the string length reasonable.

However, it would probably be helpful to include the LastUpdateTimestamp (at the very least when there is also a HeartbeatException).

The value of LastUpdateTimestamp should indicate when the last heartbeat completed (either successfully or in error). Knowing how long ago the last heartbeat completed should be very helpful in diagnosing connectivity issues.



 Comments   
Comment by Githook User [ 12/Apr/19 ]

Author:

{'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov', 'username': 'dmitry-lukyanov'}

Message: CSHARP-2548: Add `LastUpdateTimestamp` to ToString().

CSHARP-2548: Refactoring according to code review.
Branch: v2.8.x
https://github.com/mongodb/mongo-csharp-driver/commit/1411fc0797932d0932fdf0374c249c657249b41f

Comment by Githook User [ 01/Apr/19 ]

Author:

{'email': 'dmitry_lukyanov@epam.com', 'name': 'Dmitry Lukyanov', 'username': 'dmitry-lukyanov'}

Message: CSHARP-2548: Add `LastUpdateTimestamp` to ToString().

CSHARP-2548: Refactoring according to code review.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/dd6d09b195cdd521cf4a1ab754d417c77b3273ac

Generated at Wed Feb 07 21:42:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.