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

Option to extend driver name and version in handshake metadata

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7
    • None
    • Wire Protocol
    • None

    Description

      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" }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: