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 β€” A mongoc_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 πŸ‘‘

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