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