MONGOC_APM_SE...D_SUCCEEDED_CB(3)
π
mongoc_apm_set_command_succeeded_cb β from the libmongoc manual, bestie π«Ά
okay so picture this: you wanna know the second the driver finishes a MongoDB operation, right? like, not a vibe check later, but literally right then. that's this whole page. it's the mongoc_apm_..._command_succeeded_cb situation and it's iconic honestly.
β¨ SYNOPSIS β¨
typedef void (*mongoc_apm_command_succeeded_cb_t) (
const mongoc_apm_command_succeeded_t *event);
void
mongoc_apm_set_command_succeeded_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_command_succeeded_cb_t cb);
so what does it do, you ask? no cap: receive an event notification whenever the driver completes a MongoDB operation. that's the whole gig π like the driver finishing a MongoDB operation is the main character and your callback is the bestie it texts immediately.
π PARAMETERS π
callbacksβ amongoc_apm_callbacks_t. yes queen, that's the callback container you're handing over.cbβ a function to call with amongoc_apm_command_succeeded_twhenever the driver completes a MongoDB operation. so any time the driver wraps up a MongoDB operation, boom, your function gets summoned with thatmongoc_apm_command_succeeded_tin hand π₯
π SEE ALSO π
- Introduction to Application Performance Monitoring β go read it, iykyk π¦
π AUTHOR π
MongoDB, Inc β yeah, them. the ones who made this whole thing happen π
πΈ COPYRIGHT πΈ
2009-present, MongoDB, Inc. β every year since 2009 and counting, no cap β
fr fr bestie, that's the entire page. every flag, every type, every parameter β nothing skipped, nothing invented, just the facts served with a little garnish π
and that's a wrap on libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and monitor those operations, you absolute icon π
β¨
π¦ 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