We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d74dfa0 commit 0c2f447Copy full SHA for 0c2f447
server/utils/monitoring.ts
@@ -10,7 +10,6 @@ export function init() {
10
Sentry.init({
11
dsn: process.env.SENTRY_DSN,
12
environment: process.env.NODE_ENV,
13
- tracesSampleRate: process.env.NODE_ENV === 'production' ? 1 : 0,
14
denyUrls: [
15
/\/resources\/healthcheck/,
16
// TODO: be smarter about the public assets...
@@ -33,7 +32,7 @@ export function init() {
33
32
if (samplingContext.request?.url?.includes('/resources/healthcheck')) {
34
return 0
35
}
36
- return 1
+ return process.env.NODE_ENV === 'production' ? 1 : 0
37
},
38
beforeSendTransaction(event) {
39
// ignore all healthcheck related transactions
0 commit comments