1MONGOC_CLIENT_POOL_SET_APM_CALLBMAoCnKgSo(D3B)CMODNrGiOvCe_rCLIENT_POOL_SET_APM_CALLBACKS(3)
2
3
4
6 mongoc_client_pool_set_apm_callbacks - mongoc_client_pool_set_apm_call‐
7 backs()
8
10 bool
11 mongoc_client_pool_set_apm_callbacks (mongoc_client_pool_t *pool,
12 mongoc_apm_callbacks_t *callbacks,
13 void *context);
14
15 Register a set of callbacks to receive Application Performance Monitor‐
16 ing events.
17
18 The callbacks are copied by the pool and may be destroyed at any time
19 after.
20
22 · pool: A mongoc_client_pool_t.
23
24 · callbacks: A mongoc_apm_callbacks_t.
25
26 · context: Optional pointer to include with each event notification.
27
29 Returns true on success. If any arguments are invalid, returns false
30 and logs an error.
31
33 This function can only be called once on a pool, and must be called
34 before the first call to mongoc_client_pool_pop.
35
37 Introduction to Application Performance Monitoring
38
40 MongoDB, Inc
41
43 2017-present, MongoDB, Inc
44
45
46
47
481.15.2 Nov 06,MO2N0G1O9C_CLIENT_POOL_SET_APM_CALLBACKS(3)