Page MenuHomePhabricator

Convert WikimediaEvents statsv.js to use sendBeacon
Closed, ResolvedPublic


We're already using sendBeacon for EventLogging (which covers the majority of client-side metric gathering), but for several more light-weight metrics we use statsv (an HTTP end-point that pushes straight into statsd).

This should be updated to make use of sendBeacon, right now it still uses new Image.

Ideally we wouldn't repeat the sendBeacon fallback abstraction layer in WikimediaEvents but re-use what we have in EventLogging. It may need to be publicly exposed (if not already).

Event Timeline

Krinkle raised the priority of this task from to Needs Triage.
Krinkle updated the task description. (Show Details)
Krinkle added a subscriber: Krinkle.

Change 274619 had a related patch set uploaded (by Krinkle):
ext.wikimediaEvents.statsd: Use navigator.sendBeacon if available

Krinkle triaged this task as Medium priority.
Krinkle set Security to None.

Change 274619 merged by jenkins-bot:
ext.wikimediaEvents.statsd: Use navigator.sendBeacon if available