MONGOC_APM_SET...OGY_OPENING_CB(3)
💖 mongoc_apm_set_topology_opening_cb(3) 💖
okay so bestie, welcome to the libmongoc manual 💅 this page is all about mongoc_apm_set_topology_opening_cb, aka the APM topology-opening callback situation, and the vibe is very “lowkey simple but highkey important.” No cap, it’s iconic.
✨ SYNOPSIS ✨
typedef void (*mongoc_apm_topology_opening_cb_t) (
const mongoc_apm_topology_opening_t *event);
void
mongoc_apm_set_topology_opening_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_topology_opening_cb_t cb);
Receive an event notification whenever the driver initializes a mongoc_topology_description_t. That’s the whole main character energy right there — it’s giving “tell me when the topology description gets initialized” and honestly, slay.
🎀 PARAMETERS 🎀
callbacks— amongoc_apm_callbacks_t. This is the callback table you’re plugging into, bestie.cb— a function to call with amongoc_apm_topology_opening_twhenever the driver initializes amongoc_topology_description_t. This is the actual callback doing the work, fr fr.
👀 SEE ALSO 👀
- Introduction to Application Performance Monitoring — the full APM lore lives there, and it ate. Go read it if you want the whole picture, iykyk.
💅 AUTHOR 💅
MongoDB, Inc
🫶 COPYRIGHT 🫶
2009-present, MongoDB, Inc.
okay bye bestie 🦋 this page is version 2.5.6 of the libmongoc manual, dated Oct 09, 202 (the footer’s last digit is literally missing, not my fault 😭). Stay iconic. 💖✨
📦 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