MONGOC_APM_CO..._CONNECTION_ID(3)
π MONGOC_APM_CO..._CONNECTION_ID(3) β libmongoc
okay bestie, welcome to the girlies' guide to mongoc_apm_command_started_get_server_connection_id(), brought to you by libmongoc. it's giving β¨nicheβ¨ but you're gonna eat this up, i promise. π«Ά
β οΈ WARNING β οΈ
Deprecated since version 1.24.0: Use mongoc_apm_command_started_get_server_connection_id_int64() instead.
fr fr, this one is old news. she served her time, but the glow-up version is the _int64 one. use that instead, no cap. π
β¨ SYNOPSIS β¨
int32_t
mongoc_apm_command_started_get_server_connection_id (
const mongoc_apm_command_started_t *event);
π¦ DESCRIPTION π¦
so like, this function hands you the server connection ID for the command. π
and no, bestie, don't get it twisted β the server connection ID is NOT the same thing as the server ID (that's mongoc_apm_command_started_get_server_id(), a whole different queen π). the server connection ID is what the server spits back in the hello or legacy hello response as "connectionId", and that's a server on 4.2+ thing. periodt. π
πΈ PARAMETERS πΈ
event: Amongoc_apm_command_started_t.
β RETURNS β
the server connection ID, as a positive integer β or -1 if it's just not available. π (we've all been there.)
SEE ALSO: Introduction to Application Performance Monitoring
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
okay that's the whole vibe, bestie β go forth and monitor those connections. ππ slay responsibly.
signing off from libmongoc 1.30.13, dated Oct 09, 2026 β mwah, love u, bye! π
π¦ where this page comes from
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms