MONGOC_APM_CO...GET_SERVICE_ID(3)

✨ MONGOC_APM_CO...GET_SERVICE_ID(3) ✨

okay bestie, so this one's from libmongoc, section 3 of the manual, and it's lowkey one of the shorter ones β€” a little cutie that just hands you a service ID. let's get into it πŸ’…


🌸 SYNOPSIS 🌸

const bson_oid_t *
mongoc_apm_command_succeeded_get_service_id (
   const mongoc_apm_command_succeeded_t *event);

so basically this function returns this event's service ID β€” like, the thing that identifies the MongoDB service hiding behind a load balancer πŸŽ€ β€” or NULL if you're not connected to a load balanced cluster. no cap, that's the whole vibe check.


πŸ¦‹ PARAMETERS πŸ¦‹

  • event β€” a mongoc_apm_command_succeeded_t. that's it, that's the whole list, she's low maintenance ✨

πŸŽ€ RETURNS πŸŽ€

a bson_oid_t that should not be modified or freed β€” hands off, bestie, it's not yours to touch πŸ™ˆ β€” or NULL.

fr fr do NOT modify it and do NOT free it. it's giving borrowed pointer energy. just look at it and move on πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


that's the whole page, iykyk πŸ’– go forth and get those service IDs, main character 🫢

~ libmongoc, version 2.5.6, dated Oct 09, 2026 ~ ⭐

πŸ“¦ where this page comes from