Commit graph

3 commits

Author SHA1 Message Date
Cole White
bb864c4885 Stats: make component optional
* Add withComponent() to configure StatsFactory components.
 * Throw exception on setting static labels without component.
 * Clean up ServiceWiring and MediaWikiServices.
 * Rename withLabel to setLabel.
 * Rename withSampleRate to setSampleRate.
 * Rename withStaticLabel to addStaticLabel.
 * Update tests.

Bug: T240685
Change-Id: I6c99a532431f00bd140f44cb2d5eba2a9d83ca57
2023-09-04 18:00:49 +01:00
Cole White
216ca9ebe1 Stats: use MetricsInterface where needed
* Requires formatters $metric parameter to be an instance of MetricsInterface.
 * Updates type constraints in MetricsCache

Bug: T240685
Change-Id: If80968a9be26d08d42617842be9b34fe6c946340
2023-03-03 15:19:42 +00:00
Cole White
fa92ab43e9 Metrics: rename Metrics lib to Stats
Bug: T240685
Change-Id: Ie43d894b6b4030a88e397495d40886ccb6e69835
2023-02-24 23:01:32 +00:00
Renamed from includes/libs/Metrics/Formatters/StatsdFormatter.php (Browse further)