1MONGOC_CLIENT_SET_APM_CALLBACKS(3) libmongocMONGOC_CLIENT_SET_APM_CALLBACKS(3)
2
3
4
6 mongoc_client_set_apm_callbacks - mongoc_client_set_apm_callbacks()
7
9 bool
10 mongoc_client_set_apm_callbacks (mongoc_client_t *client,
11 mongoc_apm_callbacks_t *callbacks,
12 void *context);
13
14 Register a set of callbacks to receive Application Performance Monitor‐
15 ing events.
16
17 The callbacks are copied by the client and may be destroyed at any time
18 after. If a context is passed, it is the application's responsibility
19 to ensure context remains valid for the lifetime of the client.
20
22 · client: A mongoc_client_t.
23
24 · callbacks: Optional mongoc_apm_callbacks_t. Pass NULL to clear all
25 callbacks.
26
27 · context: Optional pointer to include with each event notification.
28
30 Returns true on success. If any arguments are invalid, returns false
31 and logs an error.
32
34 Introduction to Application Performance Monitoring
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.17.4 Feb 04, 2021MONGOC_CLIENT_SET_APM_CALLBACKS(3)