mirror of
https://github.com/openai/codex.git
synced 2026-05-03 04:42:20 +03:00
feat: timer total turn metrics (#9382)
This commit is contained in:
@@ -144,6 +144,12 @@ impl Session {
|
||||
})
|
||||
};
|
||||
|
||||
let timer = turn_context
|
||||
.client
|
||||
.get_otel_manager()
|
||||
.start_timer("codex.turn.e2e_duration_ms", &[])
|
||||
.ok();
|
||||
|
||||
let running_task = RunningTask {
|
||||
done,
|
||||
handle: Arc::new(AbortOnDropHandle::new(handle)),
|
||||
@@ -151,6 +157,7 @@ impl Session {
|
||||
task,
|
||||
cancellation_token,
|
||||
turn_context: Arc::clone(&turn_context),
|
||||
_timer: timer,
|
||||
};
|
||||
self.register_new_active_task(running_task).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user