[DRIVERS-2613] Logging if connection establishment exceeds a given threshold Created: 24/Apr/23 Updated: 26/Apr/23 |
|
| Status: | Backlog |
| Project: | Drivers |
| Component/s: | CMAP, Logging |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Alex Bevilacqua | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Driver Changes: | Needed |
| Description |
|
Something similar was introduced for the MongoDB Server with For example, the server introduced slowConnectionThresholdMillis which defaults to 100ms, and when exceeded will output a log entry that contains details about:
|
| Comments |
| Comment by Bailey Pearson [ 26/Apr/23 ] |
|
Adding connection establishment metrics to our CMAP events and logging events seems like a good idea. We can attach connection establishment information to `ConnectionReady` events. A few open questions:
|
| Comment by Jeffrey Yemin [ 24/Apr/23 ] |
|
Just FYI for some socket API's (e.g. Java) the driver can't measure TCP handshake time independent of TLS handshake time, because TLS is abstracted from the calling code behind a common API. |