diff options
author | Dana Powers <dana.powers@gmail.com> | 2016-08-04 12:18:54 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2016-08-04 13:05:23 -0700 |
commit | a698162dc9bcb228007c4942105515f0eb720c2c (patch) | |
tree | 605fb76bacb2e2f5894715a8c12c728ff8e9886c | |
parent | 035e8f058e13021060fcc10d0e5d3fa87fae7273 (diff) | |
download | kafka-python-a698162dc9bcb228007c4942105515f0eb720c2c.tar.gz |
Metrics instance must be passed explicitly from KafkaConsumer to KafkaClient
-rw-r--r-- | kafka/consumer/group.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 5edfaea..7dde29a 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -281,7 +281,7 @@ class KafkaConsumer(six.Iterator): log.warning('use api_version=%s [tuple] -- "%s" as str is deprecated', str(self.config['api_version']), str_version) - self._client = KafkaClient(**self.config) + self._client = KafkaClient(metrics=self._metrics, **self.config) # Get auto-discovered version from client if necessary if self.config['api_version'] is None: |