Skip to content

Commit e63f9f0

Browse files
committed
remove tracesSamplerate, as it is superseded by tracesSampler
1 parent d30802a commit e63f9f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/utils/monitoring.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ export function init() {
3030
],
3131
tracesSampler(samplingContext) {
3232
// ignore healthcheck transactions by other services (consul, etc.)
33-
if (samplingContext.request?.url?.includes('/resources/healthcheck')) {
33+
if (
34+
samplingContext.request?.url?.includes('/resources/healthcheck') ||
35+
process.env.NODE_ENV !== 'production'
36+
) {
3437
return 0
3538
}
3639
return 1

0 commit comments

Comments
 (0)