Closed coding-yogi closed 1 month ago
Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ
Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions
I am using a custom context with below code
struct CustomContext; impl ConsumerContext for CustomContext {} impl ClientContext for CustomContext { fn stats(&self, statistics: rdkafka::Statistics) { log::info!("{:?}", statistics); } }
This context is then passed to create a BaseConsumer client . The statistics.interval.ms is being set to 10000 in ClientConfig
BaseConsumer
statistics.interval.ms
10000
client_config.set("statistics.interval.ms", "10000");
let context = CustomContext; let base_consumer = BaseConsumer::from_config_and_context(config, context)?;
loop { //sleep 1 sec }
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
v0.36.2
"OS_ARCH=amd64", "OS_FLAVOUR=debian-12", "OS_NAME=linux", "APP_VERSION=3.7.0", "BITNAMI_APP_NAME=kafka",
statistics.interval.ms=10000
Ubuntu
debug=..
Sorted. Checked the code and understood I need to keep polling
Read the FAQ first: https://github.com/confluentinc/librdkafka/wiki/FAQ
Do NOT create issues for questions, use the discussion forum: https://github.com/confluentinc/librdkafka/discussions
Description
I am using a custom context with below code
This context is then passed to create a
BaseConsumer
client . Thestatistics.interval.ms
is being set to10000
in ClientConfigHow to reproduce
client_config.set("statistics.interval.ms", "10000");
Checklist
IMPORTANT: We will close issues where the checklist has not been completed.
Please provide the following information:
v0.36.2
statistics.interval.ms=10000
Ubuntu
debug=..
as necessary) from librdkafka - No logs generated