MONGOC_APM_SET...MAND_FAILED_CB(3)
π«Ά MONGOC_APM_SET_COMMAND_FAILED_CB(3) π
okay so bestie, this one lives in the libmongoc manual, section 3, and it's all about getting pinged when a MongoDB operation goes sideways π no cap. Let's get into it.
β¨ SYNOPSIS β¨
typedef void (*mongoc_apm_command_failed_cb_t) (
const mongoc_apm_command_failed_t *event);
void
mongoc_apm_set_command_failed_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_command_failed_cb_t cb);
π¬ DESCRIPTION π¬
So basically π β this sets you up to receive an event notification whenever the driver fails to execute a MongoDB operation. Like, the operation flopped, the driver knows it flopped, and now it's gonna tell you about it. It's giving "I've got you, bestie" energy fr fr πβ¨
π PARAMETERS π
callbacksβ amongoc_apm_callbacks_t. That's the callback bag you're dropping your function into π«Άcbβ the function to call with amongoc_apm_command_failed_twhenever a MongoDB operation fails. That's the lil notification payload you get handed π
π SEE ALSO π
- Introduction to Application Performance Monitoring β go read it, iykyk π₯
π AUTHOR π
MongoDB, Inc β icons only, periodt π
πΈ COPYRIGHT πΈ
2009-present, MongoDB, Inc. β yeah, they've been at this a minute β
okay that's the whole page!! mwah π this one came from libmongoc version 2.5.6, dated Oct 09 (the year got absolutely sniped off the end in the source footer, so we're just gonna pretend we didn't see it ππ). go forth and catch those failures bestie π¦π
π¦ 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