Explorar o código

Add instrumentation when connecting

Andreas Braun %!s(int64=2) %!d(string=hai) anos
pai
achega
37fcd80793
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Mongo/MongoClient.php

+ 1 - 1
lib/Mongo/MongoClient.php

@@ -96,7 +96,7 @@ class MongoClient
         if (false === strpos($this->server, '://')) {
             $this->server = 'mongodb://' . $this->server;
         }
-        $this->client = new Client($this->server, $options, $driverOptions);
+        $this->client = new Client($this->server, $options, $driverOptions + ['driver' => ['name' => 'mongo-php-adapter']]);
         $info = $this->client->__debugInfo();
         $this->manager = $info['manager'];