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

SEE ALSO

38       Introduction to Application Performance Monitoring
39

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.17.6                           Jun 03,MO2N0G2O1C_CLIENT_POOL_SET_APM_CALLBACKS(3)
Impressum