@@ -31,7 +31,7 @@ listen for driver events to monitor your application.
31
31
.. note:: Event Logging
32
32
33
33
This page explains how to monitor your application in code. To learn how to record
34
- this information to an external log, see :ref:`Logging. < pymongo-logging>`
34
+ this information to an external log, see the :ref:`pymongo-logging` guide.
35
35
36
36
Event Types
37
37
-----------
@@ -45,9 +45,9 @@ The following table describes the types of events that the driver emits:
45
45
46
46
* - Event Type
47
47
- Description
48
- * - Command Events
48
+ * - Command events
49
49
- Events related to MongoDB database commands, such as ``find``, ``insert``,
50
- ``delete``, and ``count``. To learn how to use the {+driver-short+} to run a
50
+ ``delete``, and ``count``. To learn how to use {+driver-short+} to run a
51
51
database command, see :ref:`<pymongo-run-command>`. For more information about
52
52
MongoDB database commands, see :manual:`Database Commands </reference/command/>`
53
53
in the {+mdb-server+} manual.
@@ -56,10 +56,10 @@ The following table describes the types of events that the driver emits:
56
56
command events. This protects the sensitive information contained in these command
57
57
events.
58
58
59
- * - Server Discovery and Monitoring (SDAM) Events
59
+ * - Server Discovery and Monitoring (SDAM) events
60
60
- Events related to changes in the state of the MongoDB deployment.
61
61
62
- * - Connection Pool Events
62
+ * - Connection Pool events
63
63
- Events related to the connection pool held by the driver.
64
64
65
65
For a complete list of events the driver emits, see the
@@ -69,7 +69,7 @@ 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 monitor your application using an event listener:
72
+ The following steps describe how to monitor your application by 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
@@ -94,5 +94,5 @@ API Documentation
94
94
To learn more about the methods and classes used to monitor events in the driver, see the
95
95
following API documentation:
96
96
97
- - `pymongo. monitoring <{+api-root+}pymongo/monitoring.html>`__
97
+ - `monitoring <{+api-root+}pymongo/monitoring.html>`__
98
98
- `MongoClient <{+api-root+}pymongo/mongo_client.html#pymongo.mongo_client.MongoClient>`__
0 commit comments