Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions server/utils/monitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function init() {
Sentry.init({
dsn: process.env.SENTRY_DSN,
environment: process.env.NODE_ENV,
tracesSampleRate: process.env.NODE_ENV === 'production' ? 1 : 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to move this prod check to the tracesSampler function

denyUrls: [
/\/resources\/healthcheck/,
// TODO: be smarter about the public assets...
Expand All @@ -33,7 +32,7 @@ export function init() {
if (samplingContext.request?.url?.includes('/resources/healthcheck')) {
return 0
}
return 1
return process.env.NODE_ENV === 'production' ? 1 : 0
},
beforeSendTransaction(event) {
// ignore all healthcheck related transactions
Expand Down
Loading