MONGOC_APM_CO...CTION_ID_INT64(3)
β¨ MONGOC_APM_CO...CTION_ID_INT64 β¨
okay bestie, so this one lives in libmongoc (the C driver for MongoDB, iykyk) and it's a little getter that hands you a server connection ID as an int64_t. it's giving "small function, big main character energy" π
πΈ SYNOPSIS πΈ
int64_t
mongoc_apm_command_succeeded_get_server_connection_id_int64 (
const mongoc_apm_command_succeeded_t *event);
so here's the tea π« β this call returns the server connection ID for the command. and no, don't get it twisted: the server connection ID is distinct from the server ID (mongoc_apm_command_succeeded_get_server_id()), they're different things fr fr. the connection ID comes back from the server in the hello or legacy hello response as "connectionId", and it's a thing on servers 4.2+. slay. π
π PARAMETERS π
eventβ amongoc_apm_command_succeeded_t. that's the vibe you're passing in, bestie.
π¦ RETURNS π¦
the server connection ID as a positive integer π― β or -1 if it's just not available. no cap, that's the whole deal.
π SEE ALSO:
- Introduction to Application Performance Monitoring
π AUTHOR π
MongoDB, Inc β iconic behavior honestly π
π COPYRIGHT π
2009-present, MongoDB, Inc. β they've been at this a minute, and we respect it.
and that's a wrap, bestie β¨ this page was brought to you by libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and fetch those connection IDs, mwah ππ
π¦ 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