Skip to content

Commit

Permalink
Add sentry config
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Feb 25, 2024
1 parent cfd4e52 commit 16c99d0
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,18 @@ info("Start frontend")
Sentry.init({
dsn: "https://88e8a309f91b8b5bb9a41dd14ff775b9@o4504995920543744.ingest.sentry.io/4506752563019776",
integrations: [Sentry.browserTracingIntegration()],
// Performance Monitoring
tracesSampleRate: 0.1, // Capture 100% of the transactions
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracesSampleRate: 0.1,
tracePropagationTargets: ["localhost"],
})
beforeSend(event, hint) {
// On macOS we do only development, we can ignore all development errors
if (event.contexts?.os?.name === 'macOS') {
// Ignore the event
return null;
}
// Otherwise, return the event as is
return event;
},
});

events.init()

Expand Down

0 comments on commit 16c99d0

Please sign in to comment.