Commit Graph

13 Commits (786fe68816f4a188a2f636afaf34b1b825482ed2)

Author SHA1 Message Date
Luke Barnard d53c836fd7 Implement aggregation by error type for tracked decryption failures 2018-07-05 13:54:44 +01:00
Luke Barnard 3846aef8a1 Alter docs, add comments 2018-06-28 16:06:12 +01:00
Luke Barnard ab990d8cec Increase grace period to allow time for key sharing 2018-06-28 15:07:58 +01:00
Luke Barnard 01dd387970 Track UISIs in bulk
Piwik supports sending an event value, which we can use to indicate
cardinality of UISIs to be tracked instead of tracking them individually.

This means we can track them at a lower frequency of (fairly arbitrary)
60s.
2018-06-28 15:07:27 +01:00
Luke Barnard b0a2772889 Use more consistent start/stop pattern 2018-06-15 17:58:43 +01:00
Luke Barnard 488cc416cf For now, shelve persistance across sessions 2018-06-15 17:08:11 +01:00
Luke Barnard edfc9a0841 Fix bug with localStorage loading 2018-06-15 17:00:12 +01:00
Luke Barnard 98ed93ee5b Don't hash the eventId (it's uneccessary) 2018-06-15 16:59:42 +01:00
Luke Barnard f22f2d7bd6 Use a Map instead of Object to preserve failure ordering 2018-06-15 15:49:33 +01:00
Luke Barnard f08274585e Persist tracked event ID hash using localStorage 2018-06-15 15:30:54 +01:00
Luke Barnard ac0416af96 Do not track previously tracked failures 2018-06-15 14:48:20 +01:00
Luke Barnard 4a8442901d Remove failures when marking them for tracking 2018-06-15 14:45:11 +01:00
Luke Barnard 62601d657d Implement DecryptionFailureTracker for less agressive tracking
Instead of pinging Analytics once per failed decryption, add the failure
to a list of failures and after a grace period, add it to a FIFO for
tracking. On an interval, track a single failure from the FIFO.
2018-06-15 13:42:18 +01:00