You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| durationMS |Int | The execution time for the command in milliseconds. The calculated value MUST be the time to send the message and receive the reply from the server and MAY include BSON serialization and/or deserialization. |
404
-
| reply | String | Relaxed extJSON representation of the reply. This document MUST be truncated appropriately according to rules defined in the [logging specification](../logging/logging.md#configurable-max-document-length), and MUST be replaced with an empty document "{ }" if the command is considered sensitive. |
| durationMS |Int32/Int64/Double| The execution time for the command in milliseconds. The calculated value MUST be the time to send the message and receive the reply from the server and MAY include BSON serialization and/or deserialization. |
404
+
| reply | String | Relaxed extJSON representation of the reply. This document MUST be truncated appropriately according to rules defined in the [logging specification](../logging/logging.md#configurable-max-document-length), and MUST be replaced with an empty document "{ }" if the command is considered sensitive. |
405
405
406
406
The unstructured form SHOULD be as follows, using the values defined in the structured format above to fill in
407
407
placeholders as appropriate:
@@ -415,11 +415,11 @@ placeholders as appropriate:
415
415
416
416
In addition to the common fields, command failed messages MUST contain the following key-value pairs:
| durationMS |Int | The execution time for the command in milliseconds. The calculated value MUST be the time to send the message and receive the reply from the server and MAY include BSON serialization and/or deserialization. |
422
-
| failure | Flexible | The error. The type and format of this value is flexible; see the [logging specification](../logging/logging.md#representing-errors-in-log-messages) for details on representing errors in log messages. If the command is considered sensitive, the error MUST be redacted and replaced with a language-appropriate alternative for a redacted error, e.g. an empty string, empty document, or null. |
| durationMS |Int32/Int64/Double| The execution time for the command in milliseconds. The calculated value MUST be the time to send the message and receive the reply from the server and MAY include BSON serialization and/or deserialization. |
422
+
| failure | Flexible | The error. The type and format of this value is flexible; see the [logging specification](../logging/logging.md#representing-errors-in-log-messages) for details on representing errors in log messages. If the command is considered sensitive, the error MUST be redacted and replaced with a language-appropriate alternative for a redacted error, e.g. an empty string, empty document, or null. |
423
423
424
424
The unstructured form SHOULD be as follows, using the values defined in the structured format above to fill in
425
425
placeholders as appropriate:
@@ -444,6 +444,8 @@ penalties, particularly when event listeners are introduced.
444
444
445
445
## Changelog
446
446
447
+
- 2025-01-22: Clarify durationMS in logs may be Int32/Int64/Double.
448
+
447
449
- 2024-09-11: Migrated from reStructuredText to Markdown.
448
450
449
451
- 2015-09-16: Removed `limit` from find test with options to support 3.2.\
| reason | String | A string describing the reason checkout. The following strings MUST be used for each possible reason as defined in [Events](#events) above:<br>- Timeout: "Wait queue timeout elapsed without a connection becoming available"<br>- ConnectionError: "An error occurred while trying to establish a new connection"<br>- Pool closed: "Connection pool was closed" |
1158
-
| error | Flexible | If `reason` is `ConnectionError`, the associated error. The type and format of this value is flexible; see the [logging specification](../logging/logging.md#representing-errors-in-log-messages) for details on representing errors in log messages. |
1159
-
| durationMS | Int64|`ConnectionCheckOutFailedEvent.duration` converted to milliseconds. |
| reason | String | A string describing the reason checkout. The following strings MUST be used for each possible reason as defined in [Events](#events) above:<br>- Timeout: "Wait queue timeout elapsed without a connection becoming available"<br>- ConnectionError: "An error occurred while trying to establish a new connection"<br>- Pool closed: "Connection pool was closed" |
1158
+
| error | Flexible | If `reason` is `ConnectionError`, the associated error. The type and format of this value is flexible; see the [logging specification](../logging/logging.md#representing-errors-in-log-messages) for details on representing errors in log messages. |
1159
+
| durationMS |Int32/Int64/Double|`ConnectionCheckOutFailedEvent.duration` converted to milliseconds. |
1160
1160
1161
1161
The unstructured form SHOULD be as follows, using the values defined in the structured format above to fill in
1162
1162
placeholders as appropriate:
@@ -1168,11 +1168,11 @@ placeholders as appropriate:
1168
1168
1169
1169
In addition to the common fields defined above, this message MUST contain the following key-value pairs:
0 commit comments