MONGOC_APM_SET...OGY_CHANGED_CB(3)
Hey bestie π you just opened the MONGOC_APM_SET...OGY_CHANGED_CB(3) manual page from libmongoc. This is the one where you set the callback that gets pinged when the server topology does something. Itβs giving monitoring main character energy, no cap. π
β¨ SYNOPSIS β¨
typedef void (*mongoc_apm_topology_changed_cb_t) (
const mongoc_apm_topology_changed_t *event);
void
mongoc_apm_set_topology_changed_cb (mongoc_apm_callbacks_t *callbacks,
mongoc_apm_topology_changed_cb_t cb);
Okay so what does it actually do? You receive an event notification whenever the driver observes a change in any of the servers it is connected to or a change in the overall server topology. Thatβs the whole vibe: topology watch, but make it callback. πβ¨
π PARAMETERS π
callbacksβ amongoc_apm_callbacks_t. Thatβs the callbacks object youβre working with, bestie.cbβ a function to call with amongoc_apm_topology_changed_twhenever the driver observes a change in any of the servers it is connected to or a change in the overall server topology. Yes, itβs the star of the show. π
π¦ SEE ALSO π¦
- Introduction to Application Performance Monitoring β go read that for the bigger APM lore π
π AUTHOR π
MongoDB, Inc
πΈ COPYRIGHT πΈ
2009-present, MongoDB, Inc.
Okay bye bestie π«Ά this was libmongoc version 2.5.6, dated Oct 09, 202 (the footer text runs right into the title, classic π). Stay slay, and may your topology changes always be notified. π
π₯
π¦ 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