Skip to content

Commit e52332a

Browse files
Set tracer only when available (ongr-io#910)
1 parent b6cef45 commit e52332a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Service/ManagerFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ public function createManager($managerName, $connection, $analysis, $managerConf
103103

104104
$client = ClientBuilder::create();
105105
$client->setHosts($connection['hosts']);
106-
$client->setTracer($this->tracer);
106+
107+
if ($this->tracer) {
108+
$client->setTracer($this->tracer);
109+
}
107110

108111
if ($this->logger && $managerConfig['logger']['enabled']) {
109112
$client->setLogger($this->logger);

0 commit comments

Comments
 (0)