Skip to content

Commit a5edb59

Browse files
committed
improve metrics.py
Signed-off-by: justwph <2732352+wph95@users.noreply.github.com>
1 parent c663773 commit a5edb59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ray/util/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def __init__(
198198
if self._discard_metric:
199199
self._metric = None
200200
else:
201-
if os.environ.get("RAY_enable_open_telemetry") == "1":
201+
if os.environ.get("RAY_enable_open_telemetry") == "true":
202202
"""
203203
For the new opentelemetry implementation, we'll correctly use Counter
204204
rather than Sum.

0 commit comments

Comments
 (0)