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β amongoc_apm_callbacks_t. that's the callback crew you're plugging into πcbβ a function to call with amongoc_apm_server_closed_twhenever the driver stops monitoring a server and removes itsmongoc_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 π§
π COPYRIGHT π
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms