fix tag key typo (#9606)

This commit is contained in:
Lingxuan Zuo 2020-07-21 19:50:54 +08:00 committed by GitHub
parent 9b1772253f
commit 9c4cf0f961
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ cdef class Metric:
# Default tags will be exported if it's empty map.
if tags:
for tag_k, tag_v in tags.items():
c_tags[tag_v.encode("ascii")] = tag_v.encode("ascii")
c_tags[tag_k.encode("ascii")] = tag_v.encode("ascii")
c_value = value
with nogil:
self.metric.get().Record(c_value, c_tags)