From 0362e12da61acf728cd3513017aa79d29ad404e0 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Thu, 19 Feb 2026 19:58:46 +0000 Subject: [PATCH] Skip removed features during metrics emission (#12253) Summary - avoid emitting metrics for features marked as `Stage::Removed` - keep feature metrics aligned with active and planned states only Testing - Not run (not requested) --- codex-rs/core/src/features.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs index c79bb00bc..a4be91046 100644 --- a/codex-rs/core/src/features.rs +++ b/codex-rs/core/src/features.rs @@ -250,6 +250,9 @@ impl Features { pub fn emit_metrics(&self, otel: &OtelManager) { for feature in FEATURES { + if matches!(feature.stage, Stage::Removed) { + continue; + } if self.enabled(feature.id) != feature.default_enabled { otel.counter( "codex.feature.state",