mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
37 stars 33 forks source link

SQL-447: Set client metadata in JDBC driver #41

Closed bucaojit closed 2 years ago

bucaojit commented 2 years ago

This PR adds the driver name and version (major.minor) to the client metadata.
Obtained from getClass().getPackage().getImplementationTitle() and getClass().getPackage().getImplementationVersion(), otherwise defaults to 'mongodb-jdbc' and 0.0.

Log from ADL:

"clientMetadata": {"driver":{"name":"mongo-java-driver|sync|mongodb-jdbc","version":"3.12.10|1.0"} ...