Page MenuHomePhabricator

Support third-party use by eliminating hard dependency on Varnish
Closed, DeclinedPublic

Description

We should have a working implementation of the beacon endpoint in MediaWiki for third-party users who may not be using Varnish.

It should be pretty easy to do. I think this snippet should do the trick, but I'm not sure where to put it.

wfDebugLog( 'EventLogging', $_SERVER['QUERY_STRING'] );
while ( ob_get_level() ) {
    ob_end_clean();
}
header( 'HTTP/1.1 204 No Content' );

Version: unspecified
Severity: normal

Details

Reference
bz43601

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:18 AM
bzimport set Reference to bz43601.
bzimport added a subscriber: Unknown Object (MLST).

See special/SpecialRecordImpression.php in mediawiki/extensions/CentralNotice.

De-assigning for now in case someone else wants to pick this up.

[moving from MediaWiki extensions to Analytics product - see bug 61946]

It seems like this could be done with a SpecialPage in EventLogging itself. The event payload could be emitted as a structured PSR3 log event to make further processing from the log sink easier.

Declining, For usage on vagarnt there is teh eventlogging dev server, beyond that we have not had any requests for EL support outside WMF.