RdKafka\Conf::setStatsCb

(PECL rdkafka >= 3.0.5, librdkafka >= 0.9)

RdKafka\Conf::setStatsCbSets the statistics report callback

Description

public RdKafka\Conf::setStatsCb ( callable $callback ) : void

Set statistics callback.

Parameters

callback (callable)

A callable with the following signature:

<?php
/**
 * @param object $kafka
 * @param string $json
 * @param int $json_len
 */
function ($kafka$json$json_len);

Return Values

Returns no value.