1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Update sentry reporting

This commit is contained in:
Zhiyuan Zheng
2022-01-08 11:19:24 +01:00
parent e3c84f6146
commit e92a7907e6
3 changed files with 42 additions and 15 deletions

View File

@ -61,7 +61,7 @@ const apiTooot = async <T = unknown>({
})
})
.catch(error => {
if (sentry && Math.random() < 0.005) {
if (sentry && Math.random() < 0.01) {
Sentry.Native.setExtras({
API: 'tooot',
...(error.response && { response: error.response }),