MONGOC_APM_SE...ED_GET_CONTEXT(3)

πŸ¦‹ MONGOC_APM_SE...ED_GET_CONTEXT πŸ¦‹

okay bestie, welcome to the libmongoc manual β€” yes, that libmongoc, the MongoDB C driver one πŸ’…. This page is about a li'l getter function that hands you back your own context pointer, no cap.


✨ SYNOPSIS ✨

void *
mongoc_apm_server_changed_get_context (
   const mongoc_apm_server_changed_t *event);

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


πŸ’– PARAMETERS πŸ’–

  • event β€” A mongoc_apm_server_changed_t. yes, that exact type, it's giving very specific and we love that for it 🫢

🌸 RETURNS 🌸

The pointer you passed in with mongoc_client_set_apm_callbacks() or mongoc_client_pool_set_apm_callbacks(). so like, you gave it a context, and now it's giving it right back to you β€” iconic round-trip behavior, no notes πŸ’«


πŸŽ€ SEE ALSO πŸŽ€

  • Introduction to Application Performance Monitoring β€” go read it, it's the main character of this whole storyline πŸ‘‘

πŸ’œ AUTHOR πŸ’œ

MongoDB, Inc β€” the collective, the moment, the team 🧚


2009-present, MongoDB, Inc.


<div>okay that's the whole page, go forth and get your context bestie πŸŒˆπŸ’–βœ¨</div>

mwah πŸ’‹ β€” this was libmongoc version 2.5.6, dated Oct 09, 2026. periodt.

πŸ“¦ where this page comes from