MONGOC_APM_SET...T_SUCCEEDED_CB(3)
okay bestie, this is the MONGOC_APM_SET...T_SUCCEEDED_CB(3) page from the libmongoc manual β the title is lowkey giving βlong function name got squished in the header,β but we move π
β¨ SYNOPSIS β¨
Hereβs the exact shape of the callback type and the setter, no cap:
typedef void (*mongoc_apm_server_heartbeat_succeeded_cb_t) (
const mongoc_apm_server_heartbeat_succeeded_t *event);
void
mongoc_apm_set_server_heartbeat_succeeded_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_server_heartbeat_succeeded_cb_t cb);
And the whole vibe is: receive an event notification whenever the driver completes a "hello" command to check the status of a server. iconic behavior honestly π¦
π«Ά PARAMETERS π«Ά
callbacksβ amongoc_apm_callbacks_t. Thatβs the callbacks object, bestie.cbβ a function to call with amongoc_apm_server_heartbeat_succeeded_twhenever the driver completes a"hello"command to check the status of a server.
π SEE ALSO π
- Introduction to Application Performance Monitoring
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay thatβs the whole page, periodt! This cutie is from libmongoc version 2.5.6, and the footer date reads Oct 09, 202 β yes, exactly like that, donβt @ me ππ«Ά go set that callback and slay β¨π·
π¦ 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