浏览代码

Add instrumentation when connecting

Andreas Braun 2 年之前
父节点
当前提交
37fcd80793
共有 1 个文件被更改,包括 1 次插入1 次删除
  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'];