MONGOC_APM_SE...LOGY_CLOSED_CB(3)
π mongoc_apm_set_topology_closed_cb(3) β yes bestie, we're talking libmongoc today π
okay so picture this: it's from libmongoc, and it's the little callback hook that fires when the driver stops monitoring a server topology and yeets its mongoc_topology_description_t into the void. it's giving cleanup era. it's giving "the party's over, everyone out." π
β¨ SYNOPSIS β¨
typedef void (*mongoc_apm_topology_closed_cb_t) (
const mongoc_apm_topology_closed_t *event);
void
mongoc_apm_set_topology_closed_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_topology_closed_cb_t cb);
so like, the whole point: you get an event notification whenever the driver stops monitoring a server topology and destroys its mongoc_topology_description_t. one last goodbye text, basically ππ¦
πΈ PARAMETERS πΈ
callbacksβ amongoc_apm_callbacks_t. that's the callback bag you're stuffing things into, bestie π«Άcbβ a function to call with amongoc_apm_topology_closed_twhenever the driver stops monitoring a server topology and destroys itsmongoc_topology_description_t. yes, say it with me: stops monitoring β‘οΈ destroys the topology description β‘οΈ your callback gets amongoc_apm_topology_closed_tβ¨
π¦ SEE ALSO π¦
- Introduction to Application Performance Monitoring β go read it, iykyk π
π AUTHOR π
MongoDB, Inc β the icons themselves π
π COPYRIGHT π
2009-present, MongoDB, Inc. periodt. no cap, that's the copyright line, we don't argue with it π
lowkey reminder: this page is about getting told when the topology monitoring wraps up β don't go inventing extra behaviour for it, that's not the vibe π
okay bye bestie, this was libmongoc version 2.5.6, dated Oct 09, 2026 β slay, drink water, and may your callbacks always fire exactly once when they should ππ§ββοΈ
π¦ 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