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

Option to extend driver name and version in handshake metadata

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7
    • Component/s: Wire Protocol
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: