Skip to content

Commit 37fcd80

Browse files
committed
Add instrumentation when connecting
1 parent 248d60e commit 37fcd80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Mongo/MongoClient.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function __construct($server = 'default', array $options = ['connect' =>
9696
if (false === strpos($this->server, '://')) {
9797
$this->server = 'mongodb://' . $this->server;
9898
}
99-
$this->client = new Client($this->server, $options, $driverOptions);
99+
$this->client = new Client($this->server, $options, $driverOptions + ['driver' => ['name' => 'mongo-php-adapter']]);
100100
$info = $this->client->__debugInfo();
101101
$this->manager = $info['manager'];
102102

0 commit comments

Comments
 (0)