File tree 2 files changed +7
-3
lines changed
packages/dd-trace/src/ci-visibility/dynamic-instrumentation
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
2
const tracer = require ( '../packages/dd-trace' )
3
- const { isTrue } = require ( '../packages/dd-trace/src/util' )
3
+ const { isTrue, isFalse } = require ( '../packages/dd-trace/src/util' )
4
4
const log = require ( '../packages/dd-trace/src/log' )
5
5
6
6
const isJestWorker = ! ! process . env . JEST_WORKER_ID
@@ -23,7 +23,7 @@ const options = {
23
23
flushInterval : isJestWorker ? 0 : 5000
24
24
}
25
25
26
- let shouldInit = true
26
+ let shouldInit = ! isFalse ( process . env . DD_CIVISIBILITY_ENABLED )
27
27
28
28
if ( isPackageManager ( ) ) {
29
29
log . debug ( 'dd-trace is not initialized in a package manager.' )
Original file line number Diff line number Diff line change @@ -69,8 +69,12 @@ class TestVisDynamicInstrumentation {
69
69
// To avoid infinite initialization loops, we're disabling DI and tracing in the worker.
70
70
env : {
71
71
...process . env ,
72
+ DD_CIVISIBILITY_ENABLED : 0 ,
72
73
DD_TRACE_ENABLED : 0 ,
73
- DD_TEST_FAILED_TEST_REPLAY_ENABLED : 0
74
+ DD_TEST_FAILED_TEST_REPLAY_ENABLED : 0 ,
75
+ DD_CIVISIBILITY_MANUAL_API_ENABLED : 0 ,
76
+ DD_TRACING_ENABLED : 0 ,
77
+ DD_TRACE_TELEMETRY_ENABLED : 0
74
78
} ,
75
79
workerData : {
76
80
config : config . serialize ( ) ,
You can’t perform that action at this time.
0 commit comments