1MONGOC_CLIENT_POOL_SET_APM_CALLBACKSl(i3b)moMnOgNoGcOC_CLIENT_POOL_SET_APM_CALLBACKS(3)
2
3
4
6 bool
7 mongoc_client_pool_set_apm_callbacks (mongoc_client_pool_t *pool,
8 mongoc_apm_callbacks_t *callbacks,
9 void *context);
10
11 Register a set of callbacks to receive Application Performance Monitor‐
12 ing events.
13
14 The callbacks are copied by the pool and may be destroyed at any time
15 after. If a context is passed, it is the application's responsibility
16 to ensure context remains valid for the lifetime of the pool.
17
19 • pool: A mongoc_client_pool_t.
20
21 • callbacks: A mongoc_apm_callbacks_t.
22
23 • context: Optional pointer to include with each event notification.
24
26 Returns true on success. If any arguments are invalid, returns false
27 and logs an error.
28
30 This function can only be called once on a pool, and must be called be‐
31 fore the first call to mongoc_client_pool_pop().
32
33 SEE ALSO:
34 Introduction to Application Performance Monitoring
35
36
38 MongoDB, Inc
39
41 2017-present, MongoDB, Inc
42
43
44
45
461.25.1 Nov 08,MO2N0G2O3C_CLIENT_POOL_SET_APM_CALLBACKS(3)