flotilla/src/app/tracking.ts

14 lines
370 B
TypeScript
Raw Normal View History

2024-10-25 23:44:06 +00:00
import * as Sentry from "@sentry/browser"
export const setupTracking = () => {
2024-10-30 21:33:25 +00:00
if (import.meta.env.VITE_GLITCHTIP_API_KEY) {
2024-10-25 23:44:06 +00:00
Sentry.init({
2024-10-30 21:33:25 +00:00
dsn: import.meta.env.VITE_GLITCHTIP_API_KEY,
2024-10-25 23:44:06 +00:00
tracesSampleRate: 0.01,
integrations(integrations) {
2024-10-31 19:24:40 +00:00
return integrations.filter(integration => integration.name !== "Breadcrumbs")
2024-10-25 23:44:06 +00:00
},
})
}
}