File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ Subscribe to Events
38
38
You can access details about SDAM events by subscribing to them
39
39
in your application. To subscribe to an event, define an Application
40
40
Performance Monitoring (APM) callback function to handle each event
41
- type you want to subscribe to. Use a ``mongoc_apm_callbacks_t`` object
42
- to register the list of APM callbacks with a client using the
43
- ``mongoc_client_set_apm_callbacks()`` function .
41
+ type you want to subscribe to. Pass a ``mongoc_apm_callbacks_t`` object
42
+ to the ``mongoc_client_set_apm_callbacks()`` function to register the
43
+ list of APM callbacks with a client .
44
44
45
45
This code monitors server opening events by performing the following
46
46
actions:
@@ -66,15 +66,13 @@ messages that resemble the following:
66
66
.. code-block:: none
67
67
:copyable: false
68
68
69
- Server opening on ac-rmuag0v-shard-00-00.gh0qg50.mongodb.net:27017
70
- Server opening on ac-rmuag0v-shard-00-01.gh0qg50.mongodb.net:27017
71
- Server opening on ac-rmuag0v-shard-00-02.gh0qg50.mongodb.net:27017
69
+ Server opening: <host>:<port number>
72
70
73
71
Event Descriptions
74
72
------------------
75
73
76
74
You can subscribe to SDAM events by defining the corresponding
77
- event callback function. The following table provides the name of
75
+ APM callback function. The following table provides the name of
78
76
each SDAM event, links to the type's API documentation, and describes
79
77
when the event is published:
80
78
You can’t perform that action at this time.
0 commit comments