MONGOC_APM_CALLBACKS_NEW(3)

πŸ’… MONGOC_APM_CALLBACKS_NEW

okay so bestie, welcome to mongoc_apm_callbacks_new β€” it lives in the libmongoc manual and honestly? it's giving tiny-but-mighty. ✨


🌸 SYNOPSIS

mongoc_apm_callbacks_t *
mongoc_apm_callbacks_new (void);

πŸŽ€ DESCRIPTION

bestie. all this function does is create a struct β€” a fresh little mongoc_apm_callbacks_t β€” and that struct's whole entire job is to hold your event-notification callbacks. that's it. that's the vibe. πŸ¦‹

no cap, it takes void β€” zero arguments, zero drama, main character energy only. πŸ‘‘

πŸ’– RETURNS

you get back a brand-new mongoc_apm_callbacks_t, and here's the part where you do not forget β€” you must free it with mongoc_apm_callbacks_destroy(). like, literally, that's not optional. no leaks in this house. 🫢

🧚 reminder bestie: new struct in, mongoc_apm_callbacks_destroy() at the end. iykyk.

πŸ‘€ SEE ALSO

  • Introduction to Application Performance Monitoring β€” go read it, it's the whole context for why these callbacks even exist fr fr πŸ’€

🌈 AUTHOR

MongoDB, Inc β€” icons only. πŸ‘‘

2009-present, MongoDB, Inc. β€” slay, protecting the intellectual property, periodt. πŸ’…


and that's the whole page, bestie! source is libmongoc, version 2.5.6, dated Oct 09, 2026 β€” go forth and allocate responsibly πŸŽ€πŸŒΈπŸ’œ

πŸ“¦ where this page comes from