feat: timer total turn metrics (#9382)

This commit is contained in:
jif-oai authored and GitHub committed 2026-01-19 10:44:31 +00:00
1 parent a803467f52
commit 7ebe13f692
5 files changed
+11 -3

No files matched your search

+2 -1
View File
@@ -37,7 +37,6 @@ pub(crate) enum TaskKind {
Compact,
}
#[derive(Clone)]
pub(crate) struct RunningTask {
pub(crate) done: Arc<Notify>,
pub(crate) kind: TaskKind,
@@ -45,6 +44,8 @@ pub(crate) struct RunningTask {
pub(crate) cancellation_token: CancellationToken,
pub(crate) handle: Arc<AbortOnDropHandle<()>>,
pub(crate) turn_context: Arc<TurnContext>,
// Timer recorded when the task drops to capture the full turn duration.
pub(crate) _timer: Option<codex_otel::Timer>,
}
impl ActiveTurn {