elixir-mongo / mongodb

MongoDB driver for Elixir
Apache License 2.0
568 stars 157 forks source link

support appName option #347

Closed KevinMarth closed 3 years ago

KevinMarth commented 3 years ago

Microsoft has stated that support for the appName connection option is required to use CosmosDB. See https://docs.microsoft.com/en-us/azure/cosmos-db/mongodb-troubleshoot. According to https://docs.mongodb.com/manual/reference/connection-string/#urioption.appName, this option was new in version 4.0.

This PR adds some support for the appName connection option in the hope that any additional work that is needed can be added by a more experienced maintainer.