@@ -921,8 +921,8 @@ See the `Load Balancer Specification <../load-balancers/load-balancers.rst#event
921
921
* it is the time elapsed between the `ConnectionCreatedEvent`
922
922
* emitted by the same checking out and this event.
923
923
*
924
- * Naturally, this duration does not include any part of
925
- * `ConnectionCheckedOutEvent`/`ConnectionCheckOutFailedEvent.waited `.
924
+ * Naturally, this duration is not greater than
925
+ * `ConnectionCheckedOutEvent`/`ConnectionCheckOutFailedEvent.duration `.
926
926
*
927
927
* A driver that delivers events synchronously MUST NOT include in this duration
928
928
* the time to deliver the `ConnectionCreatedEvent`.
@@ -995,9 +995,9 @@ See the `Load Balancer Specification <../load-balancers/load-balancers.rst#event
995
995
reason: string | Enum ;
996
996
997
997
/**
998
- * See `ConnectionCheckedOutEvent.waited `.
998
+ * See `ConnectionCheckedOutEvent.duration `.
999
999
*/
1000
- waited : Duration ;
1000
+ duration : Duration ;
1001
1001
}
1002
1002
1003
1003
/**
@@ -1015,30 +1015,30 @@ See the `Load Balancer Specification <../load-balancers/load-balancers.rst#event
1015
1015
connectionId: int64 ;
1016
1016
1017
1017
/**
1018
- * The time elapsed waiting for conditions
1019
- * specified by `ConnectionPoolOptions.waitQueueTimeoutMS`.
1020
- * More specifically, the time elapsed between the `ConnectionCheckOutStartedEvent` and:
1021
- * - the `ConnectionCreatedEvent` emitted by the same checking out,
1022
- * if this checking out emitted `ConnectionCreatedEvent`;
1023
- * - this event, otherwise.
1018
+ * The time it took to check out the connection.
1019
+ * More specifically, the time elapsed between the `ConnectionCheckOutStartedEvent` and
1020
+ * the `ConnectionCheckedOutEvent`/`ConnectionCheckOutFailedEvent`
1021
+ * emitted by the same checking out.
1024
1022
*
1025
- * Naturally, this duration is usually
1023
+ * Naturally, if a new connection was not created (`ConnectionCreatedEvent`)
1024
+ * and established (`ConnectionReadyEvent`) as part of checking out,
1025
+ * this duration is usually
1026
1026
* smaller than or equal to `ConnectionPoolOptions.waitQueueTimeoutMS`,
1027
1027
* but MAY occasionally be greater than that,
1028
1028
* because a driver does not provide hard real-time guarantees.
1029
1029
*
1030
1030
* A driver that delivers events synchronously MUST NOT include in this duration
1031
- * the time to deliver the `ConnectionCheckOutStartedEvent`, `ConnectionCreatedEvent` .
1031
+ * the time to deliver the `ConnectionCheckOutStartedEvent`.
1032
1032
* Doing so eliminates a thing to worry about in support cases related to this duration,
1033
1033
* because the time to deliver synchronously is affected by user code.
1034
1034
* The driver MUST document this behavior
1035
1035
* as well as explicitly warn users that the behavior may change in the future.
1036
1036
*
1037
1037
* A driver MAY choose the type idiomatic to the driver.
1038
1038
* If the type chosen does not convey units, e.g., `int64`,
1039
- * then the driver MAY include units in the name, e.g., `waitedMS `.
1039
+ * then the driver MAY include units in the name, e.g., `durationMS `.
1040
1040
*/
1041
- waited : Duration ;
1041
+ duration : Duration ;
1042
1042
}
1043
1043
1044
1044
/**
@@ -1350,13 +1350,13 @@ In addition to the common fields defined above, this message MUST contain the fo
1350
1350
- If ``reason `` is ``ConnectionError ``, the associated error. The type and format of this value is flexible; see the
1351
1351
`logging specification <../logging/logging.rst#representing-errors-in-log-messages >`_ for details on representing errors in log messages.
1352
1352
1353
- * - waitedMS
1353
+ * - durationMS
1354
1354
- Int64
1355
- - ``ConnectionCheckOutFailedEvent.waited `` converted to milliseconds.
1355
+ - ``ConnectionCheckOutFailedEvent.duration `` converted to milliseconds.
1356
1356
1357
1357
The unstructured form SHOULD be as follows, using the values defined in the structured format above to fill in placeholders as appropriate:
1358
1358
1359
- Checkout failed for connection to {{serverHost}}:{{serverPort}}. Reason: {{reason}}. Error: {{error}}. Waited : {{waitedMS }} ms
1359
+ Checkout failed for connection to {{serverHost}}:{{serverPort}}. Reason: {{reason}}. Error: {{error}}. Duration : {{durationMS }} ms
1360
1360
1361
1361
Connection Checked Out
1362
1362
-----------------------
@@ -1378,13 +1378,13 @@ In addition to the common fields defined above, this message MUST contain the fo
1378
1378
- Int64
1379
1379
- The driver-generated ID for the connection as defined in `Connection <#connection >`_.
1380
1380
1381
- * - waitedMS
1381
+ * - durationMS
1382
1382
- Int64
1383
- - ``ConnectionCheckedOutEvent.waited `` converted to milliseconds.
1383
+ - ``ConnectionCheckedOutEvent.duration `` converted to milliseconds.
1384
1384
1385
1385
The unstructured form SHOULD be as follows, using the values defined in the structured format above to fill in placeholders as appropriate:
1386
1386
1387
- Connection checked out: address={serverHost}}:{{serverPort}}, driver-generated ID={{driverConnectionId}}, waited ={{waitedMS }} ms
1387
+ Connection checked out: address={serverHost}}:{{serverPort}}, driver-generated ID={{driverConnectionId}}, duration ={{durationMS }} ms
1388
1388
1389
1389
Connection Checked In
1390
1390
---------------------
0 commit comments