Skip to content

Observability: track ExperimentalLintRequiresFlag rejection counts in install_metrics.json #234

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions