Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Skip removed features during metrics emission (#12253)

jif-oai0362e12da61a
diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs
index c79bb00bc9..a4be91046c 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",