appendMetadata

fun appendMetadata(mongoDriverInformation: MongoDriverInformation)

Appends the provided MongoDriverInformation to the existing metadata.

This enables frameworks and libraries to include identifying metadata (e.g., name, version, platform) which might be visible in the MongoD/MongoS logs. This can assist with diagnostics by making client identity visible to the server.

Note: Metadata is limited to 512 bytes; any excess will be truncated.

Since

5.6

Parameters

mongoDriverInformation

the driver information to append to the existing metadata