The Observability team is ready to move forward with migrating metrics to the new StatsLib in MediaWiki (Hypothesis 3.1.2).
We currently need one feature patch reviewed and merged into MediaWiki Core to unblock work towards using StatsLib for metrics generated by MediaWiki.
The patch is a move away from requiring StatsFactory instances to be their own predefined service with a required component, but does not eliminate this use case. The patch moves us towards using StatsFactory more like how we currently use StatsdDataFactory and provides component as an optional, configurable setting.
The patch is here: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/894577