You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to better monitor ongoDB servers, I use the appName connection URI option but after going through the bundle's code, in particular ClientRegistry::buildClientConfiguration(), it seems like URI options can't be customized more than the four ones available here.
returnnewClientConfiguration(
$conf['uri'],
$conf['username'],
$conf['password'],
$conf['authSource'],
// Beginning of URI options
[
'replicaSet' => $conf['replicaSet'],
'ssl' => $conf['ssl'],
'connectTimeoutMS' => $conf['connectTimeoutMS'],
'readPreference' => $conf['readPreference'],
],
// End of URI options$conf['driverOptions']
);
Would it be possible to allow for more customization here? I'm not quite sure how to allow for more since these four ones are at the top level of the client's configuration and it would be quite a pain to add every possible URI option at top level.
Thanks!
The text was updated successfully, but these errors were encountered:
You're welcome! It could be done with the same method I think, with an array_merge() of the four already existing ones if the UriOptionsInterface is defined?
Hello,
In order to better monitor ongoDB servers, I use the
appName
connection URI option but after going through the bundle's code, in particularClientRegistry::buildClientConfiguration()
, it seems like URI options can't be customized more than the four ones available here.Would it be possible to allow for more customization here? I'm not quite sure how to allow for more since these four ones are at the top level of the client's configuration and it would be quite a pain to add every possible URI option at top level.
Thanks!
The text was updated successfully, but these errors were encountered: