Skip to content

Commit 5068229

Browse files
kishorencdpkp
authored andcommitted
Clear the metrics dictionary on close. (#1569)
1 parent 5a04bc7 commit 5068229

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/metrics/metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,3 +257,5 @@ def close(self):
257257
"""Close this metrics repository."""
258258
for reporter in self._reporters:
259259
reporter.close()
260+
261+
self._metrics.clear()

0 commit comments

Comments
 (0)