Home/
Manual/
monitoring / commandstartedevent/ MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId
MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId
PHP function
Edit on GitHub ✎
(mongodb >=1.3.0)
Returns the command's request ID
Description
MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId(): string
The request ID is generated by the extension and may be used to associate this MongoDB\Driver\Monitoring\CommandStartedEvent with a later MongoDB\Driver\Monitoring\CommandFailedEvent or MongoDB\Driver\Monitoring\CommandSucceededEvent.
Parameters Parameters
Return Values
Returns the command's request ID.
Errors/Exceptions
See Also
MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestIdMongoDB\Driver\Monitoring\CommandSucceededEvent::getRequestId- mongodb.tutorial.apm