MONGOC_APM_SET...EAT_STARTED_CB(3)
bestie, you're on the MONGOC_APM_SET_SERVER_HEARTBEAT_STARTED_CB(3) page in the libmongoc manual, and this one is all about getting a cute lil event notification whenever the driver starts executing a "hello" command to check the status of a server. β¨
β¨ SYNOPSIS β¨
typedef void (*mongoc_apm_server_heartbeat_started_cb_t) (
const mongoc_apm_server_heartbeat_started_t *event);
void
mongoc_apm_set_server_heartbeat_started_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_server_heartbeat_started_cb_t cb);
So yeah: you get an event notification whenever the driver begins executing a "hello" command to check the status of a server. That's the whole vibe. π«Ά
π PARAMETERS π
callbacksβ amongoc_apm_callbacks_t. This is the callbacks object you're handing over, bestie.cbβ a function to call with amongoc_apm_server_heartbeat_started_twhenever the driver begins executing a"hello"command to check the status of a server. That's your callback, your main character, the function that gets pinged. π
π¦ SEE ALSO π¦
Introduction to Application Performance Monitoring
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
muah π β this page is from libmongoc 2.5.6, dated Oct 09, 2024, and that's the footer tea, periodt. πΈ
π¦ 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