MONGOC_CLIENT_..._APM_CALLBACKS(3)
π MONGOC_CLIENT_..._APM_CALLBACKS(3) π
welcome to the libmongoc manual, bestie π«Ά β this page is all about mongoc_client_pool_set_apm_callbacks, and if youβre into APM events itβs kind of a big deal β¨
β¨ SYNOPSIS β¨
bool
mongoc_client_pool_set_apm_callbacks (mongoc_client_pool_t *pool,
mongoc_apm_callbacks_t *callbacks,
void *context);
okay so this function registers a set of callbacks so you can receive Application Performance Monitoring events. the callbacks are copied by the pool, so the caller can safely destroy them after this API call completes. if a context is passed, itβs the applicationβs responsibility to ensure that context remains valid for the lifetime of the pool. π
π PARAMETERS π
poolβ Amongoc_client_pool_t.callbacksβ Amongoc_apm_callbacks_t.contextβ Optional pointer to include with each event notification.
π RETURNS π
Returns true on success, slay. If any arguments are invalid, it returns false and logs an error. π
π§΅ THREAD SAFETY π§΅
bestie, this is a one-shot situation: this function can only be called once on a pool, and it must be called before the first call to mongoc_client_pool_pop(). no cap, do not skip that.
π SEE ALSO π
- Introduction to Application Performance Monitoring
π«Ά AUTHOR π«Ά
MongoDB, Inc
Β© COPYRIGHT Β©
2009-present, MongoDB, Inc.
okay bye bestie π this page is from libmongoc version 2.5.6, dated Oct 09, 202 in the footer (yes the year is giving clipped, the terminal ate it π), and thatβs the whole vibe. π
π¦ 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