(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\addSubscriber — Registers a new monitoring event subscriber
Registers a new monitoring event subscriber with the driver. Registered subscribers will be notified of monitoring events through specific methods.
Note: If the object is already registered, this function is a no-op.
subscriber
(MongoDB\Driver\Monitoring\Subscriber)A monitoring event subscriber object to register.
没有返回值。