Skip to content

Commit 4a71fd8

Browse files
committed
preserve prod check
1 parent 45ed95e commit 4a71fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/monitoring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function init() {
3232
if (samplingContext.request?.url?.includes('/resources/healthcheck')) {
3333
return 0
3434
}
35-
return 1
35+
return process.env.NODE_ENV === 'production' ? 1 : 0
3636
},
3737
beforeSendTransaction(event) {
3838
// ignore all healthcheck related transactions

0 commit comments

Comments
 (0)