Page MenuHomePhabricator

[JS] dispatch method should warn when stream configs are disabled
Closed, ResolvedPublic

Description

Background

When stream configs are disabled, i.e. $wgEventLoggingStreamNames = false;, MetricsClient::dispatch() returns early without attempting to notify the instrumentor.

AC

  • Calling MetricsClient::dispatch() should log a warning to the logging backend of the execution environment (via Integration::logWarning())

Event Timeline

Change 798520 had a related patch set uploaded (by Phuedx; author: Phuedx):

[mediawiki/libs/metrics-platform@master] [JS] Warn when stream configs are disabled

https://gerrit.wikimedia.org/r/798520

Change 798520 merged by jenkins-bot:

[mediawiki/libs/metrics-platform@master] [JS] Warn when stream configs are disabled

https://gerrit.wikimedia.org/r/798520