MONGOC_APM_SET...VER_OPENING_CB(3)

okay bestie, welcome to MONGOC_APM_SET...VER_OPENING_CB(3) β€” a whole page straight out of the libmongoc manual, and it's giving "tiny function, big main character energy" ✨ it's a setter for a callback, it's one job, and it does it flawlessly, periodt πŸ’…


πŸŽ€ SYNOPSIS

typedef void (*mongoc_apm_server_opening_cb_t) (
   const mongoc_apm_server_opening_t *event);

void
mongoc_apm_set_server_opening_cb (mongoc_apm_callbacks_t *callbacks,
                                  mongoc_apm_server_opening_cb_t cb);

So here's the vibe: you get an event notification whenever the driver adds a mongoc_server_description_t for a new server it was not monitoring before 🌸 that's it, that's the whole function, and honestly? iconic πŸ‘‘


πŸ’– PARAMETERS

  • callbacks β€” a mongoc_apm_callbacks_t. you know, the lil bundle of APM callbacks you're decorating πŸŽ€
  • cb β€” a function to call with a mongoc_apm_server_opening_t whenever the driver adds a mongoc_server_description_t for a new server it was not monitoring before. yes, the trigger condition is literally repeated word-for-word, no cap β€” it's the same event, just described from the callback's side πŸ¦‹

πŸ” SEE ALSO:

  • Introduction to Application Performance Monitoring (go read it, iykyk)

🧚 AUTHOR

MongoDB, Inc β€” 100% certified authors, no ghostwriters πŸ™ˆ


2009-present, MongoDB, Inc. β€” respect the copyright, bestie, it's literally the law ⭐


lowkey a warning but mostly just me being careful: the only behaviour promised on this page is the one line above. nothing more, nothing invented, fr fr 🌈

and that's the whole page, bestie!! 🫢 this lil icon shipped in version 2.5.6, dated Oct 09 of a year that got chopped mid-slay (it reads 202 and then the header swoops in πŸ’€), and it's out here living its best life in the libmongoc 3 manual section. love that for it πŸ“

πŸ“¦ where this page comes from