DOKK / manpages / debian 13 / libmongoc-doc / mongoc_apm_command_succeeded_get_server_connection_id.3.en
MONGOC_APM_COMMAND_SUCCEEDED_GET_SERVER_CONNECTION_ID(3) libmongoc MONGOC_APM_COMMAND_SUCCEEDED_GET_SERVER_CONNECTION_ID(3)

WARNING:

Deprecated since version 1.24.0: Use mongoc_apm_command_succeeded_get_server_connection_id_int64() instead.



int32_t
mongoc_apm_command_succeeded_get_server_connection_id (

const mongoc_apm_command_succeeded_t *event);


Returns the server connection ID for the command. The server connection ID is distinct from the server ID (mongoc_apm_command_succeeded_get_server_id()) and is returned by the hello or legacy hello response as "connectionId" from the server on 4.2+.

event: A mongoc_apm_command_succeeded_t.

The server connection ID as a positive integer or -1 if it is not available.

SEE ALSO:

Introduction to Application Performance Monitoring



MongoDB, Inc

2009-present, MongoDB, Inc.

May 7, 2025 1.30.4