Send API timing to statsd for all requests, not just writes
authorTim Starling <tstarling@wikimedia.org>
Fri, 20 Jul 2018 06:49:49 +0000 (16:49 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 20 Jul 2018 06:49:49 +0000 (16:49 +1000)
commit55adc4422d92454229b4e3e26bd379657e6cebc5
tree6fee3d2853ca1ad2037b855fff4c3ff51bea7468
parentc496aad824b5079c11696afa3795d7b1fbfb7587
Send API timing to statsd for all requests, not just writes

The rate will be about 8k req/s, whereas currently graphite1001
receives about 350k metric updates per second, so we would expect
this to increase statsd load by about 2%.

This would have been very helpful in diagnosing API cluster overload
incidents such as the one on July 11.

Change-Id: I0a248e1bcec05915d98ec735f4cfb9800e64412d
includes/api/ApiMain.php