Skip to content

Commit 4d134f2

Browse files
author
f.kulakov
committed
stats_cb support
1 parent c58e1af commit 4d134f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/rdkafka/RdKafkaContext.php

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ private function getConf(): Conf
186186
$this->conf->setRebalanceCb($this->config['rebalance_cb']);
187187
}
188188

189+
if (isset($this->config['stats_cb'])) {
190+
$this->conf->setStatsCb($this->config['stats_cb']);
191+
}
192+
189193
$this->conf->setDefaultTopicConf($topicConf);
190194
}
191195

0 commit comments

Comments
 (0)