MONGOC_APM_SER...ANGED_GET_HOST(3)

πŸ’– MONGOC_APM_SER...ANGED_GET_HOST(3) πŸ’–

okay bestie, welcome to the libmongoc manual page for MONGOC_APM_SER...ANGED_GET_HOST(3) β€” the header is giving truncated-title realness, but the function we're actually hyping is mongoc_apm_server_changed_get_host. let's go 🫢

✨ SYNOPSIS ✨

const mongoc_host_list_t *
mongoc_apm_server_changed_get_host (const mongoc_apm_server_changed_t *event);

So this one returns this event's host. The mongoc_host_list_t you get back is not part of a linked list β€” it is solely the server for this event. iconic, but also: the data is only valid in the scope of the callback that receives this event, so copy it if it will be accessed after the callback returns.

⚠️ scope check, bestie: that data is only valid in the callback's scope. after the callback returns? copy it first. no cap.

🌸 PARAMETERS 🌸

  • event β€” a mongoc_apm_server_changed_t. that's the whole parameter vibe πŸ’…

πŸ¦‹ RETURNS πŸ¦‹

A mongoc_host_list_t that should not be modified or freed β€” hands off, don't edit it, don't free it, just look respectfully 🫢

πŸ‘€ SEE ALSO πŸ‘€

Introduction to Application Performance Monitoring

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc

2009-present, MongoDB, Inc.


later bestie!! this page is from libmongoc, version 2.5.6, dated Oct 09, 2024 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from