1MONGOC_CLIENT_POOL_SET_APM_CALLBACKSl(i3b)moMnOgNoGcOC_CLIENT_POOL_SET_APM_CALLBACKS(3)
2
3
4

NAME

6       mongoc_client_pool_set_apm_callbacks - mongoc_client_pool_set_apm_call‐
7       backs()
8

SYNOPSIS

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.  If a context is passed, it is the application's  responsibility
20       to ensure context remains valid for the lifetime of the pool.
21

PARAMETERS

23pool: A mongoc_client_pool_t.
24
25callbacks: A mongoc_apm_callbacks_t.
26
27context: Optional pointer to include with each event notification.
28

RETURNS

30       Returns  true  on  success. If any arguments are invalid, returns false
31       and logs an error.
32

THREAD SAFETY

34       This function can only be called once on a pool, and must be called be‐
35       fore the first call to mongoc_client_pool_pop().
36
37       SEE ALSO:
38          Introduction to Application Performance Monitoring
39
40

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.23.1                           Oct 20,MO2N0G2O2C_CLIENT_POOL_SET_APM_CALLBACKS(3)
Impressum