Provided by: libmongoc-doc_2.2.1-1_all bug

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
       (mongoc_apm_command_failed_get_server_id()  <>)  and is returned by the hello or legacy hello response as
       "connectionId" from the server on 4.2+.

PARAMETERS

event: A mongoc_apm_command_failed_t <>.

RETURNS

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

       See also:
          Introduction to Application Performance Monitoring <>

Author

       MongoDB, Inc

Copyright

       2009-present, MongoDB, Inc.

2.2.1                                             Dec 11, 2025MONGOC_APM_COMMAND_FAI...ER_CONNECTION_ID_INT64(3)