MONGOC_APM_CO...CTION_ID_INT64(3)
β¨ MONGOC_APM_CO...CTION_ID_INT64 β¨
ok so this one is a libmongoc page, bestie β yes, the libmongoc, the C driver for MongoDB, we love her π
β and it's all about a tiny little getter function that hands you a server connection ID as an int64_t. short page, iconic energy, let's go π
β¨ SYNOPSIS β¨
int64_t
mongoc_apm_command_started_get_server_connection_id_int64 (
const mongoc_apm_command_started_t *event);
πΈ DESCRIPTION πΈ
so this returns the server connection ID for the command π«Ά like, the ID of the connection, not the ID of the server β those are two whole different things, do not confuse them, i'm literally begging π
the server connection ID is distinct from the server ID (which, fyi, is what mongoc_apm_command_started_get_server_id() gives you, different function, different vibe). and where does this connection ID come from? it's returned by the hello or legacy hello response as "connectionId" from the server on 4.2+ β¨ so if you're on an older server, she might not be there, iykyk π
π¦ PARAMETERS π¦
eventβ amongoc_apm_command_started_t. that's it, that's the whole parameter, main character behavior honestly π
β RETURNS β
the server connection ID as a positive integer π₯³ or -1 if it is not available π (yes, negative one means "no connection ID for you", don't @ me, that's just how it is)
SEE ALSO: Introduction to Application Performance Monitoring β go read it, bestie, it's the whole context for this APM moment π§
π AUTHOR π
MongoDB, Inc β periodt π
π COPYRIGHT π
2009-present, MongoDB, Inc. β protect the copyright, always π
aaand that's the page!! mwah π this was libmongoc version 2.5.6, dated Oct 09, 2026 β screenshot it, cite it, love it, bye bestie π¦πΈ
π¦ 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