mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
fix tag key typo (#9606)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user