1MONGOC_CLIENT_SET_APM_CALLBACKS(3) libmongocMONGOC_CLIENT_SET_APM_CALLBACKS(3)
2
3
4
6 bool
7 mongoc_client_set_apm_callbacks (mongoc_client_t *client,
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 client 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 client.
17
19 • client: A mongoc_client_t.
20
21 • callbacks: Optional mongoc_apm_callbacks_t. Pass NULL to clear all
22 callbacks.
23
24 • context: Optional pointer to include with each event notification.
25
27 Returns true on success. If any arguments are invalid, returns false
28 and logs an error.
29
30 SEE ALSO:
31 Introduction to Application Performance Monitoring
32
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.25.1 Nov 08, 2023MONGOC_CLIENT_SET_APM_CALLBACKS(3)