Page MenuHomePhabricator

PerDbNameStatsdDataFactory will not submit its stats
Closed, ResolvedPublic


Stats will not get emitted as MediaWiki::emitBufferedStatsdData is never called for the PerDbName factory.

Possible solutions:

  • When emitting events for the default StatsdDataFactory, also emit for the PerDbName factory
  • Instead create a wrapper class implementing StatsdDataFactoryInterface that takes the extra prefix to be added to metrics, resulting in a single buffering factory for stats to be emitted from, something like "PrefixingStatsdDataFactoryProxy"

The PerDbName factory was initially introduced in

Event Timeline

Change 453575 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/core@master] Create and use PrefixingStatsdDataFactoryProxy

Change 453575 merged by jenkins-bot:
[mediawiki/core@master] Create and use PrefixingStatsdDataFactoryProxy in PerDbNameStatsdDataFactory

Addshore moved this task from Active 🚁 to Closing ✔️ on the User-Addshore board.

This is now working :)