MONGOC_APM_CO...T_COMMAND_NAME(3)
β¨ MONGOC_APM_CO...T_COMMAND_NAME(3) β¨
okay bestie, welcome to the libmongoc corner of the manual π
this one's a tiny lil guy from mongoc_apm_command_succeeded_get_command_name and it's literally so simple, you're gonna eat this up.
πΈ SYNOPSIS πΈ
const char *
mongoc_apm_command_succeeded_get_command_name (
const mongoc_apm_command_succeeded_t *event);
So like, you hand it an event, and it gives you back that event's command name. That's it. That's the whole vibe. π
β οΈ but bestie 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. no cap. don't be out here holding a dangling pointer, that's not the main character energy we want π
π¦ PARAMETERS π¦
eventβ amongoc_apm_command_succeeded_t. that's the whole parameter list. one (1) thing. slay β¨
β RETURNS β
A string π β and you should not modify it or free it. it's not yours, it's just visiting. hands off, king π
π₯ SEE ALSO π₯
- Introduction to Application Performance Monitoring β go read it, iykyk π«Ά
π AUTHOR π
MongoDB, Inc β iconic behavior, honestly π
π COPYRIGHT π
2009-present, MongoDB, Inc. β periodt π
and that's the whole page, bestie!! no crumbs left π
π this has been libmongoc 2.5.6, dated Oct 09, 2026 β now go forth and get that command name (within the callback scope, obviously) ππ¦β¨
π¦ 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