MONGOC_APM_SET...EAT_STARTED_CB(3)

bestie, you're on the MONGOC_APM_SET_SERVER_HEARTBEAT_STARTED_CB(3) page in the libmongoc manual, and this one is all about getting a cute lil event notification whenever the driver starts executing a "hello" command to check the status of a server. ✨

✨ SYNOPSIS ✨

typedef void (*mongoc_apm_server_heartbeat_started_cb_t) (
   const mongoc_apm_server_heartbeat_started_t *event);

void
mongoc_apm_set_server_heartbeat_started_cb (mongoc_apm_callbacks_t *callbacks,
                                            mongoc_apm_server_heartbeat_started_cb_t cb);

So yeah: you get an event notification whenever the driver begins executing a "hello" command to check the status of a server. That's the whole vibe. 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • callbacks β€” a mongoc_apm_callbacks_t. This is the callbacks object you're handing over, bestie.
  • cb β€” a function to call with a mongoc_apm_server_heartbeat_started_t whenever the driver begins executing a "hello" command to check the status of a server. That's your callback, your main character, the function that gets pinged. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Introduction to Application Performance Monitoring

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


muah πŸ’‹ β€” this page is from libmongoc 2.5.6, dated Oct 09, 2024, and that's the footer tea, periodt. 🌸

πŸ“¦ where this page comes from