This likely involves adding an additional parameter to the Mongo object constructor and forwarding the metadata to the underlying DBClient instance.
Connection handshake
The isMaster handshake, as of MongoDB 3.4, supports a new argument, client, provided as a BSON object. This object has the following structure::
{ isMaster: 1, client: { /* OPTIONAL. If present, the "name" is REQUIRED */ application: { name: "<string>" }, /* REQUIRED, including all sub fields */ driver: { name: "<string>", version: "<string>" }, /* REQUIRED */ os: { type: "<string>", /* REQUIRED */ name: "<string>", /* OPTIONAL */ architecture: "<string>", /* OPTIONAL */ version: "<string>" /* OPTIONAL */ }, /* OPTIONAL */ platform: "<string>" } }
- is depended on by
-
SERVER-32095 Attach client.application.name to connections created by FSM worker threads in the concurrency suite
- Closed
- related to
-
SERVER-35309 Connection string option is appname; currentOp, logs, etc. use appName
- Closed