Summary
When whitaker-installer rejects an explicit experimental-lint request because --experimental was not supplied, the ExperimentalLintRequiresFlag error is logged at a decision point but no metric is emitted. At scale this makes it impossible for maintainers to diagnose user-adoption barriers or confusion around the experimental opt-in gate.
Required change
Add a counter to install_metrics.json (or the equivalent metrics sink) that is incremented whenever InstallerError::ExperimentalLintRequiresFlag is raised. This allows maintainers to observe:
- How frequently users attempt to install experimental lints without opting in.
- Which experimental lint crates are most commonly requested without the flag.
Acceptance criteria
install_metrics.json records a experimental_lint_rejection_count (or equivalent) field that is incremented on every ExperimentalLintRequiresFlag failure.
- The metric is covered by at least one unit or behavioural test asserting the counter increments correctly.
- No breaking changes to existing metric fields.
References
Summary
When
whitaker-installerrejects an explicit experimental-lint request because--experimentalwas not supplied, theExperimentalLintRequiresFlagerror is logged at a decision point but no metric is emitted. At scale this makes it impossible for maintainers to diagnose user-adoption barriers or confusion around the experimental opt-in gate.Required change
Add a counter to
install_metrics.json(or the equivalent metrics sink) that is incremented wheneverInstallerError::ExperimentalLintRequiresFlagis raised. This allows maintainers to observe:Acceptance criteria
install_metrics.jsonrecords aexperimental_lint_rejection_count(or equivalent) field that is incremented on everyExperimentalLintRequiresFlagfailure.References