Php/docs/function.mongodb.driver.monitoring.removesubscriber
From Get docs
MongoDB\Driver\Monitoring\removeSubscriber
(mongodb >=1.3.0)
MongoDB\Driver\Monitoring\removeSubscriber — Unregisters an existing monitoring event subscriber
Description
MongoDB\Driver\Monitoring\removeSubscriber
( MongoDB\Driver\Monitoring\Subscriber $subscriber
) : void
Unregisters an existing monitoring event subscriber from the driver. Unregistered subscribers will no longer be notified of monitoring events.
Note:
If the object is not registered, this function is a no-op.
Parameters
subscriber
(MongoDB\Driver\Monitoring\Subscriber)- A monitoring event subscriber object to unregister.
Return Values
No value is returned.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\Driver\Monitoring\Subscriber
- MongoDB\Driver\Monitoring\CommandSubscriber
- MongoDB\Driver\Monitoring\addSubscriber() - Registers a new monitoring event subscriber
- Application Performance Monitoring (APM)