MONGOC_APM_COM...ED_GET_COMMAND(3)
β¨ mongoc_apm_command_started_get_command() β¨
okay bestie so this is from libmongoc, section 3 of the manual β yes, the MongoDB C driver docs, we love a deep cut π«Ά
πΈ SYNOPSIS πΈ
const bson_t *
mongoc_apm_command_started_get_command (
const mongoc_apm_command_started_t *event);
So what does this icon do? It returns this event's command. That's it. That's the whole vibe. π
But β and this is the important part, do NOT skip it β 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, no shortcuts, just copy it. π
π PARAMETERS π
eventβ amongoc_apm_command_started_t. that's the whole parameter list. one (1) event. she's low maintenance. π
π¦ RETURNS π¦
A bson_t β and please, do not modify it and do not free it. It is not yours to touch, it's giving borrowed-from-the-library energy. Look respectfully. π
π SEE ALSO:
- Introduction to Application Performance Monitoring
(go read it, it's the context you need, iykyk π§)
π AUTHOR π
MongoDB, Inc β icons only π
β COPYRIGHT β
2009-present, MongoDB, Inc. β protect that copyright, bestie π
and that's the whole page, mwah π β this was version 2.5.6, dated Oct 09, 202β¦ (the footer got a lil cut off bestie, but that's literally what it says), straight out of the libmongoc MONGOC_APM_COM...ED_GET_COMMAND(3) page. go write some APM callbacks, you're gonna slay π₯π¦β¨
π¦ 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