mongoc_apm_command_started_get_server_connection_id(3)

mongoc_apm_command_started_get_server_connection_id3

Usage

int32_t
mongoc_apm_command_started_get_server_connection_id (
  const mongoc_apm_command_started_t *event);

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

WARNING:

Deprecated since version 1.24.0: Use mongoc_apm_command_started_get_server_connection_id_int64() instead.

Parameters

•

event: A mongoc_apm_command_started_t.

Returns

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

SEE ALSO:

Introduction to Application Performance Monitoring

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.