MONGOC_APM_SET_SERVER_CLOSED_CB(3)

πŸ’… MONGOC_APM_SET_SERVER_CLOSED_CB(3) πŸ’…

okay bestie, welcome to the libmongoc manual β€” this one is all about that callback moment when the driver stops monitoring a server and literally removes its mongoc_server_description_t. it's giving β€œserver closed” energy, and we're gonna understand it fr fr πŸ¦‹


✨ SYNOPSIS ✨

typedef void (*mongoc_apm_server_closed_cb_t) (
   const mongoc_apm_server_closed_t *event);

void
mongoc_apm_set_server_closed_cb (mongoc_apm_callbacks_t *callbacks,
                                 mongoc_apm_server_closed_cb_t cb);

Receive an event notification whenever the driver stops monitoring a server and removes its mongoc_server_description_t. πŸ‘‘ no cap, that's the whole vibe.


πŸŽ€ PARAMETERS πŸŽ€

  • callbacks β€” a mongoc_apm_callbacks_t. that's the callback crew you're plugging into πŸ’–
  • cb β€” a function to call with a mongoc_apm_server_closed_t whenever the driver stops monitoring a server and removes its mongoc_server_description_t. yes, exactly that. periodt. πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

Introduction to Application Performance Monitoring β€” go read it, bestie, it's the lore 🌈


🫢 AUTHOR 🫢

MongoDB, Inc 🧚


2009-present, MongoDB, Inc. πŸŽ€


mwah πŸ’‹ this little page is from libmongoc version 2.5.6, dated Oct 09, 2024 β€” now go slay those callbacks, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from