Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix(otel): record first agent.step duration correctly (#1189)

r33drichardsaa0885037a59
diff --git a/libs/python/agent/agent/callbacks/otel.py b/libs/python/agent/agent/callbacks/otel.py
index 742a368d76..2a3e0e156d 100644
--- a/libs/python/agent/agent/callbacks/otel.py
+++ b/libs/python/agent/agent/callbacks/otel.py
@@ -79,6 +79,7 @@ class OtelCallback(AsyncCallbackHandler):
return
self.run_start_time = time.perf_counter()
+ self.step_start_time = self.run_start_time
self.step_count = 0
async def on_run_end(