Results of 1 - 2 of about 2 for pendingCommands (0.002 sec.)
- Application Performance Monitoring (APM) 9357
- « Using the PHP Library for MongoDB (PHPLIB) Driver Architecture and Internals » PHP Manual Tutorials Application Performance Monitoring (APM) 検索 Application Performance Monitoring (APM) The extension contains an event subscriber API, whi
... 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
- Application Performance Monitoring (APM) 9357
- « Using the PHP Library for MongoDB (PHPLIB) Driver Architecture and Internals » PHP Manual Tutorials Application Performance Monitoring (APM) 検索 Application Performance Monitoring (APM) The extension contains an event subscriber API, whi
... 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