Last modified: 2013-10-08 19:38:46 UTC
The webrequest stream, mobile webrequest stream, and zero webrequest stream used to come with "mf-m=a", and "mf-m=b" markers in the X-Analytics field. Now they no longer come with those markers. However, it seems we need them markers to track usage of the mobilefrontend for alpha/beta site. (Diederik might know the details) As there were some changes around handling of the X-Analytics field, and around how the zero markers get set there, those changes of the puppet repo might be related: 07b8b855b576eb2316bc69fdf87b542459f9791d cfdf66f9362f0d169e73f8640d81d1c6ffdfc43a 1755cfe5d556f20acae6a9c3cb59e9b38e1327e3 The markers seem to be set in includes/MobileContext.php:907 of git:mediawiki/extensions/MobileFrontend. The latest packets with those markers are: +--------------------+------------+---------------------+ | Stream | sequence# | timestamp | +--------------------+------------+---------------------+ | sampled-1000 | 5601268853 | 2013-09-26T22:32:55 | | mobile-sampled-100 | 4258131496 | 2013-09-26T22:44:17 | | zero | 4258572097 | 2013-09-26T22:56:20 | +--------------------+------------+---------------------+
Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/analytics/cards/1189
This was broken by my change to Varnish to fix #53806 (I6ac2dd). I flagged this as a potential issue on the commit message, but Yuri assured me that MediaWiki never sets X-Analytics. He was obviously wrong and I was wrong to be lazy and not checking it myself :) Fixing this isn't trivial as our cache is poisoned by the Varnish setting X-Analytics and it's impossible to know if the header that we have was set by MediaWiki or Varnish. Maybe we can hack it up and specifically regexp mf-m and append it. Before we go down that path though, can we have a specification of what X-Analytics is/supposed to be, what key/values does it have and what part of our infrastructure is supposed to set each key? We're obviously having troubles communicating on a peer-to-peer basis, so let's fix this once and for all :)
A specification of X-Analytics can be found at https://wikitech.wikimedia.org/wiki/X-Analytics
Change 86846 had a related patch set uploaded by Faidon Liambotis: varnish mobile: don't override MW's X-Analytics https://gerrit.wikimedia.org/r/86846
Change 86846 merged by Faidon Liambotis: varnish mobile: don't override MW's X-Analytics https://gerrit.wikimedia.org/r/86846
mf-m tags came back and were within expectations for the last four days.