PHP - Manual: MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId
2024-12-22
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId — Returns the command's request ID
The request ID is generated by the driver and may be used to associate this MongoDB\Driver\Monitoring\CommandFailedEvent with a previous MongoDB\Driver\Monitoring\CommandStartedEvent.
此函数没有参数。
Returns the command's request ID.
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-commandfailedevent.getrequestid.php