MONGOC_APM_SET...VER_CHANGED_CB(3)

πŸ’– MONGOC_APM_SET...VER_CHANGED_CB(3) β€” a libmongoc moment πŸ’–

Okay so bestie, this is the libmongoc page for MONGOC_APM_SET...VER_CHANGED_CB(3), and it is literally about setting up a callback that gets pinged when the driver notices server status changes. No cap. πŸ¦‹

✨ SYNOPSIS ✨

typedef void (*mongoc_apm_server_changed_cb_t) (
   const mongoc_apm_server_changed_t *event);

void
mongoc_apm_set_server_changed_cb (mongoc_apm_callbacks_t *callbacks,
                                  mongoc_apm_server_changed_cb_t cb);

Bestie, the whole vibe is this: you receive an event notification whenever the driver observes a change in status of a server it is connected to. That's the plot. That's the main character energy. πŸ’…

πŸŽ€ PARAMETERS πŸŽ€

  • callbacks β€” a mongoc_apm_callbacks_t. It's the callback container you're dressing up for the occasion.
  • cb β€” a function to call with a mongoc_apm_server_changed_t whenever the driver observes a change in status of a server it is connected to. Slay.

πŸ”— SEE ALSO πŸ”—

  • Introduction to Application Performance Monitoring

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


This iconic lil' page is source/version 2.5.6, and the footer date is doin' its Oct 09, 202… clipped situation β€” we keep it real and keep every detail. Bye bestie, go watch those server status changes! πŸ’–βœ¨

πŸ“¦ where this page comes from