8000 fix: sentry rate events · supabase/postgres-meta@64ecb5d · GitHub
[go: up one dir, main page]

Skip to content

Commit 64ecb5d

Browse files
committed
fix: sentry rate events
1 parent 72c1f71 commit 64ecb5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/sentry.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const captureOptions: Sentry.NodeOptions =
88
sentryEnvironment === 'prod'
99
? {
1010
// Tracing
11-
tracesSampleRate: 0.0001,
11+
tracesSampleRate: 0.00001, // trace 1/10k events
1212
// Set sampling rate for profiling - this is evaluated only once per SDK.init call
13-
profilesSampleRate: 0.0001,
13+
profilesSampleRate: 0.00001, // profile 1/10k events
1414
}
1515
: {
16-
tracesSampleRate: 1.0,
17-
profilesSampleRate: 1.0,
16+
tracesSampleRate: 0.01, // trace 1% of the events
17+
profilesSampleRate: 0.01,
1818
}
1919

2020
const sensitiveKeys = ['pg', 'x-connection-encrypted']

0 commit comments

Comments
 (0)
0