From 460f0784a30f303b4543763ca330cce52d6054eb Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Thu, 4 Aug 2016 12:21:40 -0700 Subject: Instrument metrics in BrokerConnection --- kafka/client_async.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kafka/client_async.py') diff --git a/kafka/client_async.py b/kafka/client_async.py index ff566ca..ce1d13b 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -222,6 +222,7 @@ class KafkaClient(object): cb = functools.partial(self._conn_state_change, 'bootstrap') bootstrap = BrokerConnection(host, port, afi, state_change_callback=cb, + node_id='bootstrap', **self.config) bootstrap.connect() while bootstrap.connecting(): @@ -313,6 +314,7 @@ class KafkaClient(object): cb = functools.partial(self._conn_state_change, node_id) self._conns[node_id] = BrokerConnection(host, broker.port, afi, state_change_callback=cb, + node_id=node_id, **self.config) conn = self._conns[node_id] if conn.connected(): -- cgit v1.2.1