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

Bump Sentry

This commit is contained in:
xmflsct
2023-02-24 14:05:29 +01:00
parent 04a56edcf4
commit ca2e1e07ec
4 changed files with 54 additions and 373 deletions

View File

@ -8,7 +8,16 @@ const sentry = () => {
Sentry.init({
enabled: !isDevelopment,
dsn: 'https://53348b60ff844d52886e90251b3a5f41@o917354.ingest.sentry.io/6410576',
autoSessionTracking: true
beforeBreadcrumb: breadcrumb => {
if (breadcrumb.type === 'http') {
const url = breadcrumb.data?.url
if (url.includes('exp.host/') || url.includes('tooot.app/') || url.includes('/api/v')) {
return breadcrumb
}
return null
}
return breadcrumb
}
})
}