only send a 5% sample of sentry errors

This commit is contained in:
Brian Gough 2015-12-08 11:34:11 +00:00
parent 7e31851949
commit cd4ab35fbc

View file

@ -57,7 +57,7 @@
], ],
shouldSendCallback: function(data) { shouldSendCallback: function(data) {
// only send a fraction of errors // only send a fraction of errors
var sampleRate = 1.00; var sampleRate = 0.05;
return (Math.random() <= sampleRate); return (Math.random() <= sampleRate);
}, },
dataCallback: function(data) { dataCallback: function(data) {