Skip to content

Commit df15216

Browse files
committed
this should be "error"
1 parent 316936a commit df15216

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

agentops/instrumentation/ag2/instrumentor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def wrapper(wrapped, instance, args, kwargs):
424424

425425
if tool_type == "function" and isinstance(result, tuple) and len(result) > 0:
426426
success = result[0] if isinstance(result[0], bool) else False
427-
span.set_attribute(ToolAttributes.TOOL_STATUS, "success" if success else "indeterminate")
427+
span.set_attribute(ToolAttributes.TOOL_STATUS, "success" if success else "error")
428428

429429
if len(result) > 1 and isinstance(result[1], dict):
430430
try:
@@ -435,7 +435,7 @@ def wrapper(wrapped, instance, args, kwargs):
435435
if tool_type == "code" and isinstance(result, tuple) and len(result) >= 3:
436436
exit_code = result[0]
437437
span.set_attribute("exit_code", exit_code)
438-
span.set_attribute(ToolAttributes.TOOL_STATUS, "success" if exit_code == 0 else "indeterminate")
438+
span.set_attribute(ToolAttributes.TOOL_STATUS, "success" if exit_code == 0 else "error")
439439

440440
if len(result) > 1 and result[1]:
441441
stdout = result[1]

0 commit comments

Comments
 (0)