MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId — 명령의 요청 ID를 반환합니다.
설명
final public MongoDB\Driver\Monitoring\CommandStartedEvent::getRequestId(): string
요청 ID는 드라이버에 의해 생성되며 이 MongoDB\Driver\Monitoring\CommandStartedEvent를 이후의 MongoDB\Driver\Monitoring\CommandFailedEvent 또는 MongoDB\Driver\Monitoring\CommandSucceededEvent와 연결하는 데 사용할 수 있습니다.
매개변수
이 함수에는 매개변수가 없습니다.
반환 값
명령의 요청 ID를 반환합니다.
오류/예외
- 인수 구문 분석 오류에 대해 MongoDB\Driver\Exception\InvalidArgumentException을 던집니다.
기타
- MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId() - 명령의 요청 ID를 반환합니다.
- MongoDB\Driver\Monitoring\CommandSucceededEvent::getRequestId() - 명령의 요청 ID를 반환합니다.
- Application Performance Monitoring (APM)