Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/127
Narrative
As a developer, I can have JS push data to logstash, so that I can track JS and application-level errors
Acceptance Criteria
- An API endpoint should write to logstash
- Entries in logstash should be tagged as coming from JS
- Don't log more than one JS error/uncaught exception per pageload
- Similarly, have a hard cap on application-level errors reports per pageload
- Sample users, using the same technique as the navigation timing extension. We don't want a widespread error pushed by mistake to take down the logstash cluster
- Filter out non-english browsers for JS errors. JS errors are localized, which would create a lot of noise in logstash. It might make us miss JS errors that only happen to certain languages, but the reduced noise is more important
- This is should be committed to core. Add Bryan Davis as reviewer since logstash is his baby
Details tracked athttps://phabricator.wikimedia.org/T382