MONGOC_APM_TOP...ED_GET_CONTEXT(3)

πŸ¦‹ MONGOC_APM_TOP...ED_GET_CONTEXT(3) πŸ¦‹

okay so this is a page from libmongoc (yes bestie, the MongoDB C driver, we're in the C trenches today πŸ’…) and it's about exactly one tiny little function that pulls the context pointer back out of a topology-closed event. that's it. that's the whole vibe. short and sweet, like a good iced coffee ✨


🌸 SYNOPSIS 🌸

here's the whole signature, copied exactly, no cap:

void *
mongoc_apm_topology_closed_get_context (
   const mongoc_apm_topology_closed_t *event);

and what does it do? it returns this event's context. that's the entire personality. πŸŽ€


πŸ“ PARAMETERS πŸ“

  • event β€” a mongoc_apm_topology_closed_t. that's the type, that's the whole requirement, she's not picky 🫢

πŸ’œ RETURNS πŸ’œ

it hands you back the pointer you passed in with mongoc_client_set_apm_callbacks() or mongoc_client_pool_set_apm_callbacks(). so like… you gave it a little gift earlier, and now it's giving it back. reciprocal queen behavior πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

  • Introduction to Application Performance Monitoring

🧚 AUTHOR 🧚

MongoDB, Inc β€” iconic, no notes πŸ’–

2009-present, MongoDB, Inc. β€” they've been at this a minute fr fr ⭐


and that's the page!! mwah πŸ’‹ β€” this little slice of the docs ships with libmongoc 2.5.6, dated Oct 09, so go forth and get your contexts back, bestie 😭πŸ”₯

πŸ“¦ where this page comes from