MONGOC_APM_CO...ARTED_GET_HOST(3)
π MONGOC_APM_COMMAND_STARTED_GET_HOST π
okay bestie, welcome to libmongoc β yes that's the manual we're in, and yes this page is a whole little moment about one tiny getter. let's get into it π
β¨ SYNOPSIS β¨
const mongoc_host_list_t *
mongoc_apm_command_started_get_host (const mongoc_apm_command_started_t *event);
so what does it actually do? it returns this event's host, periodt. that's the whole vibe. π₯
the mongoc_host_list_t you get back is not part of a linked list β like, it's not chained to a bunch of other hosts, it is solely the server for this event. main character energy, no entourage. π
and here's the part where you gotta be careful, ngl: the data is only valid in the scope of the callback that receives this event. so if you're gonna touch it after the callback returns, you must copy it first. no cap. if you don't copy it and you go poking at it later, that's on you, not me π
β οΈ reminder bestie: callback scope only. copy it before you leave the callback if you need it later β seriously, do not skip this step π«Ά
πΈ PARAMETERS πΈ
eventβ amongoc_apm_command_started_t. that's it, that's the whole parameter list, she's low maintenance π
β RETURNS β
a mongoc_host_list_t β and the rules are: do not modify it, do not free it. hands off, she's not yours to touch, just look respectfully π
π¦ SEE ALSO π¦
Introduction to Application Performance Monitoring β go read it, it's giving context and it will make this whole APM thing click iykyk π
π AUTHOR π
MongoDB, Inc β icons only π
π COPYRIGHT π
2009-present, MongoDB, Inc. β all the legal sparkle β¨
and that's the tea, bestie β this page came to you from libmongoc version 2.5.6, dated Oct 09, 2026. go forth and get that host, but copy it first okay? love u, bye π
π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms