function setHostPort(shim, connStr, db) {
  const parts = common.parseAddress(connStr)
  shim.captureInstanceAttributes(parts[0], parts[1], db)
}
Extracts the host and port from a connection string

@param {Shim} shim instance of shim
@param {string} connStr mongo connection string
@param {string} db database name