MONGOC_APM_SET...T_SUCCEEDED_CB(3)

okay bestie, this is the MONGOC_APM_SET...T_SUCCEEDED_CB(3) page from the libmongoc manual β€” the title is lowkey giving β€œlong function name got squished in the header,” but we move πŸ’…

✨ SYNOPSIS ✨

Here’s the exact shape of the callback type and the setter, no cap:

typedef void (*mongoc_apm_server_heartbeat_succeeded_cb_t) (
   const mongoc_apm_server_heartbeat_succeeded_t *event);

void
mongoc_apm_set_server_heartbeat_succeeded_cb (mongoc_apm_callbacks_t *callbacks,
                                              mongoc_apm_server_heartbeat_succeeded_cb_t cb);

And the whole vibe is: receive an event notification whenever the driver completes a "hello" command to check the status of a server. iconic behavior honestly πŸ¦‹

🫢 PARAMETERS 🫢

  • callbacks β€” a mongoc_apm_callbacks_t. That’s the callbacks object, bestie.
  • cb β€” a function to call with a mongoc_apm_server_heartbeat_succeeded_t whenever the driver completes a "hello" command to check the status of a server.

πŸ‘€ SEE ALSO πŸ‘€

  • Introduction to Application Performance Monitoring

πŸ’– AUTHOR πŸ’–

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that’s the whole page, periodt! This cutie is from libmongoc version 2.5.6, and the footer date reads Oct 09, 202 β€” yes, exactly like that, don’t @ me 😭🫢 go set that callback and slay ✨🌷

πŸ“¦ where this page comes from