PHP - Manual: MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId
2024-11-14
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandStartedEvent::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\CommandStartedEvent with a later MongoDB\Driver\Monitoring\CommandFailedEvent or MongoDB\Driver\Monitoring\CommandSucceededEvent.
此函数没有参数。
Returns the command's request ID.
官方地址:https://www.php.net/manual/en/mongodb-driver-monitoring-commandstartedevent.getrequestid.php