The option ulsPurpose was added to ULS recently. The goal of this option is to identify each instance of ULS for logging and understanding its usage better.
It must be specified in the initialization JS function, `.uls()`.
It was added to the UniversalLanguageSelector extension itself. Examples:
- https://gerrit.wikimedia.org/r/#/c/416365/7/resources/js/ext.uls.displaysettings.js
- https://gerrit.wikimedia.org/r/#/c/416365/7/resources/js/ext.uls.compactlinks.js
Now it must also be added to usages of ULS in other extensions used by Wikimedia:
[ ] Wikibase
[ ] UploadWizard ([[ https://gerrit.wikimedia.org/r/#/c/420973/ | patch ]])
[ ] Translate ([[ https://gerrit.wikimedia.org/r/#/c/420984/ | patch ]])
[ ] TwnMainPage (not deployed on Wikimedia sites, but related enough) ([[ https://gerrit.wikimedia.org/r/#/c/420986/ | patch ]])
[ ] ContentTranslation
[ ] //Did I forget anything?//
The new identifiers must be added to https://www.mediawiki.org/wiki/Universal_Language_Selector/Analytics .