MONGOC_APM_COM...CTION_ID_INT64(3)
π MONGOC_APM_COM...CTION_ID_INT64(3) β¨
okay bestie, welcome to the libmongoc manual β yes we're literally hanging out in a page whose name got truncated mid-sentence, and honestly? iconic behavior. anyway this one's short and sweet, let's go π«Ά
β¨ SYNOPSIS β¨
int64_t
mongoc_apm_command_failed_get_server_connection_id_int64 (
const mongoc_apm_command_failed_t *event);
Returns this event's context. π
Returns the server connection ID for the command. The server connection ID is distinct from the server ID (that's mongoc_apm_command_failed_get_server_id(), different function, don't mix them up bestie π) and it's returned by the hello or legacy hello response as "connectionId" from the server on 4.2+. periodt. π
πΈ PARAMETERS πΈ
eventβ amongoc_apm_command_failed_t. that's the vibe check input, go off π
π¦ RETURNS π¦
The server connection ID as a positive integer or -1 if it's not available. so like, if you get -1, it's not giving anything, it's just not there, no cap π
SEE ALSO: Introduction to Application Performance Monitoring β go read it, it's the lore β¨
π AUTHOR π
MongoDB, Inc β the main characters fr fr π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie! π this gorgeous little artifact is from version 2.5.6, dated Oct 09, 2025, brought to you by the fine folks at MongoDB, Inc. mwah π slay, and remember: connection ID β server ID, iykyk π§ββοΈπ
π¦ 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