MONGOC_APM_CO...ILED_GET_REPLY(3)
π«Ά MONGOC_APM_CO...ILED_GET_REPLY β from libmongoc, bestie π
okay so listen. this is the function you call when you're deep in your APM callback era and a command went π and you're like "wait what did the server even say back??" β and this lil icon gives you the receipts. it's giving detective energy. let's go β¨
β¨ SYNOPSIS β¨
const bson_t *
mongoc_apm_command_failed_get_reply (
const mongoc_apm_command_failed_t *event);
πΈ DESCRIPTION πΈ
so this function returns the server's reply to a command that failed. that reply is packed with the details about why the command flopped β like the whole explanation of the drama π₯.
but listen, and this is important: if no server reply was ever received β think network error, the whole vibe died in transit π β then the reply is a valid empty BSON document. still valid! still a bson_t! just empty. she's on her minimalist era.
β οΈ and here's the tea bestie: the data is only valid in the scope of the callback that receives this event. so if you're gonna touch it after the callback returns? copy it. do not skip this step. i'm serious. π
π PARAMETERS π
eventβ Amongoc_apm_command_failed_t. that's the whole parameter. that's her. π
π RETURNS π
A bson_t that should not be modified or freed. hands off, no editing, no freeing, she's not yours like that π«Ά.
π¦ SEE ALSO π¦
Introduction to Application Performance Monitoring β go read it, iykwim β¨
π AUTHOR π
MongoDB, Inc π
β COPYRIGHT β
2009-present, MongoDB, Inc.
sign-off time, bestie π β this was libmongoc version 2.5.6, dated Oct 09, 2026. slay. 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