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 d30802a commit e63f9f0Copy full SHA for e63f9f0
server/utils/monitoring.ts
@@ -30,7 +30,10 @@ export function init() {
30
],
31
tracesSampler(samplingContext) {
32
// ignore healthcheck transactions by other services (consul, etc.)
33
- if (samplingContext.request?.url?.includes('/resources/healthcheck')) {
+ if (
34
+ samplingContext.request?.url?.includes('/resources/healthcheck') ||
35
+ process.env.NODE_ENV !== 'production'
36
+ ) {
37
return 0
38
}
39
return 1
0 commit comments