File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ class Config {
97
97
this . debugSourceMaps = isTrue ( coalesce ( options . debugSourceMaps , DD_PROFILING_DEBUG_SOURCE_MAPS , false ) )
98
98
this . endpointCollectionEnabled = isTrue ( coalesce ( options . endpointCollection ,
99
99
DD_PROFILING_ENDPOINT_COLLECTION_ENABLED ,
100
- DD_PROFILING_EXPERIMENTAL_ENDPOINT_COLLECTION_ENABLED , false ) )
100
+ DD_PROFILING_EXPERIMENTAL_ENDPOINT_COLLECTION_ENABLED , true ) )
101
101
logExperimentalVarDeprecation ( 'ENDPOINT_COLLECTION_ENABLED' )
102
102
103
103
this . pprofPrefix = pprofPrefix
@@ -147,7 +147,7 @@ class Config {
147
147
148
148
this . codeHotspotsEnabled = isTrue ( coalesce ( options . codeHotspotsEnabled ,
149
149
DD_PROFILING_CODEHOTSPOTS_ENABLED ,
150
- DD_PROFILING_EXPERIMENTAL_CODEHOTSPOTS_ENABLED , false ) )
150
+ DD_PROFILING_EXPERIMENTAL_CODEHOTSPOTS_ENABLED , true ) )
151
151
logExperimentalVarDeprecation ( 'CODEHOTSPOTS_ENABLED' )
152
152
153
153
this . profilers = ensureProfilers ( profilers , this )
Original file line number Diff line number Diff line change @@ -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
} )
@@ -129,7 +129,6 @@ describe('config', () => {
129
129
it ( 'should support profiler config with DD_PROFILING_PROFILERS' , ( ) => {
130
130
process . env = {
131
131
DD_PROFILING_PROFILERS : 'wall' ,
132
- DD_PROFILING_CODEHOTSPOTS_ENABLED : '1' ,
133
132
DD_PROFILING_V8_PROFILER_BUG_WORKAROUND : '0'
134
133
}
135
134
const options = {
You can’t perform that action at this time.
0 commit comments