1MONGOC_CLIENT_SET_APM_CALLBACKS(3) libmongocMONGOC_CLIENT_SET_APM_CALLBACKS(3)
2
3
4

NAME

6       mongoc_client_set_apm_callbacks - mongoc_client_set_apm_callbacks()
7

SYNOPSIS

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

PARAMETERS

22client: A mongoc_client_t.
23
24callbacks: Optional mongoc_apm_callbacks_t. Pass NULL  to  clear  all
25         callbacks.
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
33       SEE ALSO:
34          Introduction to Application Performance Monitoring
35
36

AUTHOR

38       MongoDB, Inc
39
41       2017-present, MongoDB, Inc
42
43
44
45
461.24.3                           Aug 17, 2023MONGOC_CLIENT_SET_APM_CALLBACKS(3)
Impressum