Skip to content

Commit 72eb8d4

Browse files
authored
feat: Disable timers instrumentation by default in the sample configuration (newrelic#3253)
1 parent 1fb3859 commit 72eb8d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

newrelic.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ exports.config = {
2222
*/
2323
level: 'info'
2424
},
25+
/**
26+
* This provides instrumentation for `setTimeout` and `setInterval` calls.
27+
* We recommend you disable this instrumentation as it does not not provide
28+
* much value and creates a lot of unncessary TraceSegments/Span events.
29+
*/
30+
instrumentation: {
31+
timers: {
32+
enabled: false
33+
}
34+
},
2535
/**
2636
* When true, all request headers except for those listed in attributes.exclude
2737
* will be captured for all traces, unless otherwise specified in a destination's

0 commit comments

Comments
 (0)