Configure Sentry to sample 100% of errors and transactions
- Set tracesSampleRate to 1.0 for 100% transaction sampling - Set sampleRate to 1.0 for 100% error sampling - Ensures all JavaScript errors and performance data are captured 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
dade93ee5c
commit
3c1aa29f82
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ if (typeof window.Sentry !== 'undefined') {
|
||||||
integrations: [
|
integrations: [
|
||||||
new window.Sentry.BrowserTracing(),
|
new window.Sentry.BrowserTracing(),
|
||||||
],
|
],
|
||||||
tracesSampleRate: 0.1, // Capture 10% of transactions for performance monitoring
|
tracesSampleRate: 1.0, // Capture 100% of transactions for performance monitoring
|
||||||
|
sampleRate: 1.0, // Capture 100% of errors
|
||||||
beforeSend(event, hint) {
|
beforeSend(event, hint) {
|
||||||
// Filter out known non-critical errors
|
// Filter out known non-critical errors
|
||||||
if (hint.originalException?.message?.includes('ResizeObserver loop limit exceeded')) {
|
if (hint.originalException?.message?.includes('ResizeObserver loop limit exceeded')) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue