« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for QueryTimeCollector (0.002 sec.)
Application Performance Monitoring (APM) 11228
« 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 ... s and the average time they took. Subscriber Class Scaffolding We start with the framework for our subscriber: <?php class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { public function commandStarted ( \MongoDB\Driver\Monitoring\Comm ... ter the subscriber globally or with a specific Manager, respectively. <?php \MongoDB\Driver\Monitoring\addSubscriber ( new QueryTimeCollector () ); ?> Implementing the Logic With the object registered, the only thing left is to implement the logic in the subscribe ... corresponding commandFailed event is encountered, we just remove the entry from the pendingCommands property. <?php class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { private $pendingCommands = []; private $queryShapeStats = []; /* ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
Application Performance Monitoring (APM) 7485
« 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 ... s and the average time they took. Subscriber Class Scaffolding We start with the framework for our subscriber: <?php class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { public function commandStarted ( \MongoDB\Driver\Monitoring\Comm ... ter the subscriber globally or with a specific Manager, respectively. <?php \MongoDB\Driver\Monitoring\addSubscriber ( new QueryTimeCollector () ); ?> Implementing the Logic With the object registered, the only thing left is to implement the logic in the subscribe ... corresponding commandFailed event is encountered, we just remove the entry from the pendingCommands property. <?php class QueryTimeCollector implements \MongoDB\Driver\Monitoring\CommandSubscriber { private $pendingCommands = []; private $queryShapeStats = []; /* ...
https://man.mtool.work/php/8.3/mongodb.tutorial.apm.html
PREV 1 NEXT