« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 1 of about 1 for pendingCommands (0.001 sec.)
Application Performance Monitoring (APM) | PHP 8.3 9414
Application Performance Monitoring (APM) The extension contains an event subscriber API, which allows applications to monitor commands and internal activity pertaining to the » Server Discovery and Monitoring Specification . This tutorial w ... per query shape, we will start by checking for a find command in the commandStarted event. We will then add an item to the pendingCommands property indexed by its requestId and with its value representing the query shape. If we receive a corresponding commandSu ... nd increment the operation count. If a corresponding commandFailed event is encountered, we just remove the entry from the pendingCommands property. <?php class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { private $pendingCommand ... nt -> getCommandName () ) { $queryShape = $this -> createQueryShape ( (array) $event -> getCommand ()-> filter ); $this -> pendingCommands [ $event -> getRequestId ()] = $queryShape ; } } public function commandSucceeded ( \MongoDB\Driver\Monitoring\CommandSucc ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
PREV 1 NEXT