@@ -44,6 +44,9 @@ class MONGOCXX_API apm {
44
44
// / Set the command started monitoring callback. The callback takes a reference to a
45
45
// / command_started_event which will only contain valid data for the duration of the callback.
46
46
// /
47
+ // / @warning
48
+ // / If the callback throws an exception, the behavior is undefined.
49
+ // /
47
50
// / @param command_started
48
51
// / The command started monitoring callback.
49
52
// /
@@ -66,6 +69,9 @@ class MONGOCXX_API apm {
66
69
// / Set the command failed monitoring callback. The callback takes a reference to a
67
70
// / command_failed_event which will only contain valid data for the duration of the callback.
68
71
// /
72
+ // / @warning
73
+ // / If the callback throws an exception, the behavior is undefined.
74
+ // /
69
75
// / @param command_failed
70
76
// / The command failed monitoring callback.
71
77
// /
@@ -88,6 +94,9 @@ class MONGOCXX_API apm {
88
94
// / Set the command succeeded monitoring callback. The callback takes a reference to a
89
95
// / command_succeeded_event which will only contain valid data for the duration of the callback.
90
96
// /
97
+ // / @warning
98
+ // / If the callback throws an exception, the behavior is undefined.
99
+ // /
91
100
// / @param command_succeeded
92
101
// / The command succeeded monitoring callback.
93
102
// /
@@ -110,6 +119,9 @@ class MONGOCXX_API apm {
110
119
// / Set the server opening monitoring callback. The callback takes a reference to a
111
120
// / server_opening_event which will only contain valid data for the duration of the callback.
112
121
// /
122
+ // / @warning
123
+ // / If the callback throws an exception, the behavior is undefined.
124
+ // /
113
125
// / @param server_opening
114
126
// / The server opening monitoring callback.
115
127
// /
@@ -132,6 +144,9 @@ class MONGOCXX_API apm {
132
144
// / Set the server closed monitoring callback. The callback takes a reference to a
133
145
// / server_closed_event which will only contain valid data for the duration of the callback.
134
146
// /
147
+ // / @warning
148
+ // / If the callback throws an exception, the behavior is undefined.
149
+ // /
135
150
// / @param server_closed
136
151
// / The server closed monitoring callback.
137
152
// /
@@ -154,6 +169,9 @@ class MONGOCXX_API apm {
154
169
// / server_changed_event which will only contain valid data for the duration of the
155
170
// / callback.
156
171
// /
172
+ // / @warning
173
+ // / If the callback throws an exception, the behavior is undefined.
174
+ // /
157
175
// / @param server_changed
158
176
// / The server description changed monitoring callback.
159
177
// /
@@ -176,6 +194,9 @@ class MONGOCXX_API apm {
176
194
// / Set the topology_opening monitoring callback. The callback takes a reference to a
177
195
// / topology_opening_event which will only contain valid data for the duration of the callback.
178
196
// /
197
+ // / @warning
198
+ // / If the callback throws an exception, the behavior is undefined.
199
+ // /
179
200
// / @param topology_opening
180
201
// / The topology_opening monitoring callback.
181
202
// /
@@ -198,6 +219,9 @@ class MONGOCXX_API apm {
198
219
// / Set the topology closed monitoring callback. The callback takes a reference to a
199
220
// / topology_closed_event which will only contain valid data for the duration of the callback.
200
221
// /
222
+ // / @warning
223
+ // / If the callback throws an exception, the behavior is undefined.
224
+ // /
201
225
// / @param topology_closed
202
226
// / The topology closed monitoring callback.
203
227
// /
@@ -218,10 +242,12 @@ class MONGOCXX_API apm {
218
242
219
243
// /
220
244
// / Set the topology description changed monitoring callback. The callback takes a reference to
221
- // / a
222
- // / topology_changed_event which will only contain valid data for the duration of
245
+ // / a topology_changed_event which will only contain valid data for the duration of
223
246
// / the callback.
224
247
// /
248
+ // / @warning
249
+ // / If the callback throws an exception, the behavior is undefined.
250
+ // /
225
251
// / @param topology_changed
226
252
// / The topology description changed monitoring callback.
227
253
// /
@@ -244,6 +270,9 @@ class MONGOCXX_API apm {
244
270
// / Set the heartbeat started monitoring callback. The callback takes a reference to a
245
271
// / heartbeat_started_event which will only contain valid data for the duration of the callback.
246
272
// /
273
+ // / @warning
274
+ // / If the callback throws an exception, the behavior is undefined.
275
+ // /
247
276
// / @param heartbeat_started
248
277
// / The heartbeat started monitoring callback.
249
278
// /
@@ -266,6 +295,9 @@ class MONGOCXX_API apm {
266
295
// / Set the heartbeat failed monitoring callback. The callback takes a reference to a
267
296
// / heartbeat_failed_event which will only contain valid data for the duration of the callback.
268
297
// /
298
+ // / @warning
299
+ // / If the callback throws an exception, the behavior is undefined.
300
+ // /
269
301
// / @param heartbeat_failed
270
302
// / The heartbeat failed monitoring callback.
271
303
// /
@@ -289,6 +321,9 @@ class MONGOCXX_API apm {
289
321
// / heartbeat_succeeded_event which will only contain valid data for the duration of the
290
322
// / callback.
291
323
// /
324
+ // / @warning
325
+ // / If the callback throws an exception, the behavior is undefined.
326
+ // /
292
327
// / @param heartbeat_succeeded
293
328
// / The heartbeat succeeded monitoring callback.
294
329
// /
0 commit comments