Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1405

"appname" is not not always sent in isMaster

      It appears there's a couple places where isMaster requests are constructed:
      1) https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/topology_options.go#L198
      2) https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server.go#L514

      While both set "appname", the latter uses "s.cfg.appname", but afaict that value is never set (and I've confirmed from logs that client metadata is being received without "application"). This makes sense, since "appname" comes from https://github.com/mongodb/mongo-go-driver/blob/master/x/mongo/driver/topology/server_options.go#L24, but there's no "WithAppName(...) ServerOption" function.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            bartle David Bartley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: