Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1564

Option to extend driver name and version in handshake metadata

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7
    • Affects Version/s: None
    • Component/s: Wire Protocol
    • None

      When Motor connects to the server, it appears like a PyMongo connection: the client handshake metadata includes only PyMongo's name and version, not Motor's.

      We had the same problem with drivers that wrap the C Driver. We solved it with an option to combine the façade driver's name and version with the C Driver's:

      "driver" : { "name" : "mongoc / PHP Driver", "version" : "1.10.0 / 1.2.3" } 

      Let's add an option to PyMongo's MongoClient:

      MongoClient(driver=("Motor", "1.3.0"))
      

      PyMongo will then send to the server:

      "driver" : { "name" : "PyMongo / Motor", "version" : "3.7.0 / 1.3.0" }

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: