@@ -48,7 +48,7 @@ describe('config', () => {
48
48
expect ( config . logger ) . to . be . an . instanceof ( ConsoleLogger )
49
49
expect ( config . exporters [ 0 ] ) . to . be . an . instanceof ( AgentExporter )
50
50
expect ( config . profilers [ 0 ] ) . to . be . an . instanceof ( WallProfiler )
51
- expect ( config . profilers [ 0 ] . codeHotspotsEnabled ( ) ) . false
51
+ expect ( config . profilers [ 0 ] . codeHotspotsEnabled ( ) ) . true
52
52
expect ( config . profilers [ 1 ] ) . to . be . an . instanceof ( SpaceProfiler )
53
53
expect ( config . v8ProfilerBugWorkaroundEnabled ) . true
54
54
expect ( config . cpuProfilingEnabled ) . false
@@ -63,7 +63,7 @@ describe('config', () => {
63
63
exporters : 'agent,file' ,
64
64
profilers : 'space,wall' ,
65
65
url : 'http://localhost:1234/' ,
66
- codeHotspotsEnabled : true
66
+ codeHotspotsEnabled : false
67
67
}
68
68
69
69
const config = new Config ( options )
@@ -86,7 +86,7 @@ describe('config', () => {
86
86
expect ( config . profilers . length ) . to . equal ( 2 )
87
87
expect ( config . profilers [ 0 ] ) . to . be . an . instanceOf ( SpaceProfiler )
88
88
expect ( config . profilers [ 1 ] ) . to . be . an . instanceOf ( WallProfiler )
89
- expect ( config . profilers [ 1 ] . codeHotspotsEnabled ( ) ) . true
89
+ expect ( config . profilers [ 1 ] . codeHotspotsEnabled ( ) ) . false
90
90
} )
91
91
92
92
it ( 'should filter out invalid profilers' , ( ) => {
@@ -130,7 +130,6 @@ describe('config', () => {
130
130
it ( 'should support profiler config with DD_PROFILING_PROFILERS' , ( ) => {
131
131
process . env = {
132
132
DD_PROFILING_PROFILERS : 'wall' ,
133
- DD_PROFILING_CODEHOTSPOTS_ENABLED : '1' ,
134
133
DD_PROFILING_V8_PROFILER_BUG_WORKAROUND : '0' ,
135
134
DD_PROFILING_EXPERIMENTAL_CPU_ENABLED : '1'
136
135
}
@@ -184,7 +183,6 @@ describe('config', () => {
184
183
it ( 'should prioritize options over env variables' , ( ) => {
185
184
process . env = {
186
185
DD_PROFILING_PROFILERS : 'space' ,
187
- DD_PROFILING_CODEHOTSPOTS_ENABLED : '1' ,
188
186
DD_PROFILING_ENDPOINT_COLLECTION_ENABLED : '1'
189
187
}
190
188
const options = {
0 commit comments