Closed kevinAlbs closed 2 years ago
Alternatively we could use the user-agent value that R has built in, similar to: https://github.com/jeroen/curl/blob/master/src/handle.c#L170
This has more details, for example on my machine this is "RStudio Desktop (1.4.1103); R (4.1.1 x86_64-apple-darwin17.0 x86_64 darwin17.0)"
Summary Calls the libmongoc function
mongoc_handshake_data_append
to add additional metadata to the connection handshake to identify wrapping drivers.Motivation The MongoDB driver handshake specification Supporting Wrapping Libraries defines an API for wrapping libraries to identify themselves.
mongoc_handshake_data_append
is utilized by the MongoDB PHP driver and MongoDB C++ driver.Testing
I am new to R. I was able to build and install locally with:
I tested this by opening a connection with:
I observed the logs of a local running mongod to see the difference in the handshake metadata.
Before this change:
After this change: