mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
[codex] Tag multi-agent spawn metrics with version (#27375)
## Summary - tag legacy multi-agent spawn metrics with `version=v1` - tag multi-agent v2 spawn metrics with `version=v2` ## Why `codex.multi_agent.spawn` is emitted by both runtimes, so the existing metric cannot distinguish v2 adoption from aggregate multi-agent spawning. The bounded version tag makes that breakdown directly queryable without changing the counter's success-only semantics. ## Validation - `just fmt` - `git diff --check` - Tests and Clippy were intentionally left to CI.
This commit is contained in:
@@ -204,7 +204,7 @@ async fn handle_spawn_agent(
|
||||
turn.session_telemetry.counter(
|
||||
"codex.multi_agent.spawn",
|
||||
/*inc*/ 1,
|
||||
&[("role", role_tag)],
|
||||
&[("role", role_tag), ("version", "v1")],
|
||||
);
|
||||
|
||||
Ok(SpawnAgentResult {
|
||||
|
||||
@@ -165,7 +165,7 @@ async fn handle_spawn_agent(
|
||||
turn.session_telemetry.counter(
|
||||
"codex.multi_agent.spawn",
|
||||
/*inc*/ 1,
|
||||
&[("role", role_tag)],
|
||||
&[("role", role_tag), ("version", "v2")],
|
||||
);
|
||||
let task_name = String::from(new_agent_path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user