File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,21 +62,21 @@ The following table describes the types of events that the driver emits:
62
62
* - Connection Pool Events
63
63
- Events related to the connection pool held by the driver.
64
64
65
- For a copmlete list of events the driver emits, see the
65
+ For a complete list of events the driver emits, see the
66
66
`pymongo.monitoring <{+api-root+}pymongo/monitoring.html>`__ API documentation.
67
67
68
68
Listening for Events
69
69
--------------------
70
70
71
71
To monitor an event, you must pass an event listener to your application's ``MongoClient``.
72
- The following steps describe how to create monitor your application using an event listener:
72
+ The following steps describe how to monitor your application using an event listener:
73
73
74
74
1. Create a class that inherits from one of the event listener base classes
75
75
provided by {+driver-short+}. The base class you choose depends on the type of event
76
76
you want to monitor. For example, to monitor command events, create a class
77
77
that inherits from ``CommandListener``.
78
78
#. Implement the methods of the base class that correpond to the events you want to monitor.
79
- #. Pass an instance of your class to the ``MongoClient`` constructor.
79
+ #. Pass an instance of your listener class to the ``MongoClient`` constructor.
80
80
81
81
The following code implements a ``CommandListener`` to listen for command events, a
82
82
``ServerListener`` to listen for SDAM events, and a ``ConnectionPoolListener`` to listen for
You can’t perform that action at this time.
0 commit comments