mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-20 04:14:04 +00:00
only send a 5% sample of sentry errors
This commit is contained in:
parent
7e31851949
commit
cd4ab35fbc
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue