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)
This commit is contained in:
jif-oai 2026-02-19 19:58:46 +00:00 committed by GitHub
parent 425fff7ad6
commit 0362e12da6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",