MONGOC_APM_TO...ED_GET_CONTEXT(3)

πŸ’… mongoc_apm_topology_changed_get_context (a libmongoc moment)

okay so real talk, bestie β€” this one lives in the libmongoc family of man pages, and it's genuinely the easiest little function you'll meet today. no cap. it's just "hey, hand me back the thing I gave you" energy, and honestly? iconic.


✨ SYNOPSIS ✨

void *
mongoc_apm_topology_changed_get_context (
   const mongoc_apm_topology_changed_t *event);

Returns this event's context. that's it. that's the whole vibe. πŸŽ€


🌸 PARAMETERS 🌸

  • event β€” a mongoc_apm_topology_changed_t. yes, the whole type name, we don't abbreviate here, this is a serious codebase πŸ’…

πŸ¦‹ RETURNS πŸ¦‹

The pointer passed with mongoc_client_set_apm_callbacks() or mongoc_client_pool_set_apm_callbacks(). like, the literal same pointer you handed over earlier β€” it comes right back to you. bestie behaviour, fr fr 🫢

lowkey the cutest part is that it's your pointer β€” mongoc is just holding it for you and giving it back, no funny business ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Introduction to Application Performance Monitoring


πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc

2009-present, MongoDB, Inc.


and that's the whole page, bestie β€” go forth and get your context back πŸ’…βœ¨

signing off from libmongoc version 2.5.6, dated Oct 09, 2026 β€” mwah, see u in the next man page πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from