In order to make T389696: Analyze impact for webrequest and unique devices pipelines to derive access_method without m-dot domain possible, we need something in the webrequest logs that the refinery can use to make its decision by.
Assumptions:
- T214998 will not change the fact that the X-Subdomain: m request header is set internally between Varnish and MediaWiki.
- T214998 will be implemented by applying the X-Subdomain: m header on requests from mobile user agents directly on the canonical domain (today we first redirecting to m-dot, and then add the header there).
- Most request headers, including this one, are logged by varnishkafka or HAProxy as part of events in the webrequest topic.
Ideas:
- In Varnish, when we extend the X-Analytics header with additional key-value pairs, add one for ismobile=1 at the same time that we set X-Subdomain: m.
- Or – In MediaWiki, when MobileFrontend decides to render a mobile web page (i.e. because it sees X-Subdomain: m, or useformat=mobile, or something else), add ismobile=1 to X-Analytics header via hook from the XAnalytics extension.
Other ideas? Preferences?