MONGOC_APM_CO...T_COMMAND_NAME(3)

✨ MONGOC_APM_CO...T_COMMAND_NAME(3) ✨

okay bestie, so this one lives in libmongoc πŸ’… and it's literally just one tiny lil function β€” mongoc_apm_command_started_get_command_name β€” but she's important, so pay attention πŸŽ€


🌸 SYNOPSIS 🌸

const char *
mongoc_apm_command_started_get_command_name (
   const mongoc_apm_command_started_t *event);

Returns this event's command name. That's it, that's the whole gig πŸ’–

⚠️ okay so this part matters, fr fr: 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. don't be out here holding a dangling pointer, that's not the vibe 😭

πŸ¦‹ PARAMETERS πŸ¦‹

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

πŸ’« RETURNS πŸ’«

A string that should not be modified or freed. like, hands off, she's not yours πŸ”₯

SEE ALSO:

  • Introduction to Application Performance Monitoring πŸ‘‘

🌈 AUTHOR 🌈

MongoDB, Inc β€” the icons themselves πŸ‘‘


2009-present, MongoDB, Inc.


okay that's the whole page, you ate that πŸ«ΆπŸ’œ

libmongoc 2.5.6 · Oct 09, 2026 · mwah, go read the APM intro next, iykyk 🌟

πŸ“¦ where this page comes from