MONGOC_APM_COM...T_COMMAND_NAME(3)

πŸ’… MONGOC_APM_COM...T_COMMAND_NAME(3) πŸ’…

okay so this is a page from libmongoc (yes the whole manual is libmongoc, she's famous) and it's about one tiny little getter function that pulls the command name out of a failed-command APM event. short page, immaculate vibes, let's GO 🫢


✨ SYNOPSIS ✨

const char *
mongoc_apm_command_failed_get_command_name (
   const mongoc_apm_command_failed_t *event);

🌸 DESCRIPTION 🌸

Bestie. This function hands you back the command name for this event. That's it, that's the whole gig. πŸ’–

⚠️ But listen β€” 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, you GOTTA copy it first. No cap. Do not be out here holding a dangling pointer, that's not the main character energy we want 😭

πŸŽ€ PARAMETERS πŸŽ€

  • event β€” a mongoc_apm_command_failed_t. that's the one, that's the whole parameter list, she's low maintenance ✨

πŸ‘‘ RETURNS πŸ‘‘

A string that should not be modified or freed. like, look at it, admire it, but do NOT touch it, she's not yours πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Introduction to Application Performance Monitoring β€” go read it, iykyk πŸ“–


🌈 AUTHOR 🌈

MongoDB, Inc β€” legends, honestly πŸ”₯

2009-present, MongoDB, Inc. β€” respect the elders 🫢


and that's the whole page, bestie! this one's from libmongoc version 2.5.6, dated Oct 09, 202, and it ate. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from