Count API and hook calls, with 1:1000 sampling
authorGergő Tisza <tgr.huwiki@gmail.com>
Tue, 21 Jul 2015 23:31:22 +0000 (16:31 -0700)
committerOri.livneh <ori@wikimedia.org>
Mon, 10 Aug 2015 22:57:59 +0000 (22:57 +0000)
commitc4cd2399390f7922c88bb521c39bfbefe000338e
treec6a2b4b9003df9af0f55ecad4b1e8b509064883b
parent8206a3f28e2ebcb39da4e7acddd18ec07882cd53
Count API and hook calls, with 1:1000 sampling

Re-adds I6f807adc9cbf71c5d7b83c7eec43965dce1d2a16 and
Ic04daf475b936b942833362c7a979dde671b3ef4 (reverted in
35ccd9c2fe058ed76be905d9efe06c31c11fd696) with 1:1000 sampling
to avoid swamping the statsd hosts.

Also fixes query module logging.

Bug: T102079
Bug: T106450
Change-Id: I8b9366407c0d1713790d08e69aaa518130f01977
includes/Hooks.php
includes/api/ApiMain.php
includes/api/ApiQuery.php