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β amongoc_apm_callbacks_t. you know, the lil bundle of APM callbacks you're decorating πcbβ a function to call with amongoc_apm_server_opening_twhenever the driver adds amongoc_server_description_tfor 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 π
π COPYRIGHT
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
- 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