PHP - Manual: MongoDB\Driver\Monitoring\CommandSubscriber
2024-11-13
(mongodb >=1.3.0)
Classes may implement this interface to register an event subscriber that is notified for each started, successful, and failed command event. See Application Performance Monitoring (APM) for additional information.
官方地址:https://www.php.net/manual/en/class.mongodb-driver-monitoring-commandsubscriber.php