@@ -273,6 +273,7 @@ describe('Config', () => {
273273 expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.enabled' , false )
274274 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactedIdentifiers' , [ ] )
275275 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactionExcludedIdentifiers' , [ ] )
276+ expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.uploadIntervalSeconds' , 1 )
276277 expect ( config ) . to . have . property ( 'traceId128BitGenerationEnabled' , true )
277278 expect ( config ) . to . have . property ( 'traceId128BitLoggingEnabled' , true )
278279 expect ( config ) . to . have . property ( 'spanAttributeSchema' , 'v0' )
@@ -368,6 +369,7 @@ describe('Config', () => {
368369 { name : 'dynamicInstrumentation.enabled' , value : false , origin : 'default' } ,
369370 { name : 'dynamicInstrumentation.redactedIdentifiers' , value : [ ] , origin : 'default' } ,
370371 { name : 'dynamicInstrumentation.redactionExcludedIdentifiers' , value : [ ] , origin : 'default' } ,
372+ { name : 'dynamicInstrumentation.uploadIntervalSeconds' , value : 1 , origin : 'default' } ,
371373 { name : 'env' , value : undefined , origin : 'default' } ,
372374 { name : 'experimental.enableGetRumData' , value : false , origin : 'default' } ,
373375 { name : 'experimental.exporter' , value : undefined , origin : 'default' } ,
@@ -518,6 +520,7 @@ describe('Config', () => {
518520 process . env . DD_DYNAMIC_INSTRUMENTATION_ENABLED = 'true'
519521 process . env . DD_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS = 'foo,bar'
520522 process . env . DD_DYNAMIC_INSTRUMENTATION_REDACTION_EXCLUDED_IDENTIFIERS = 'a,b,c'
523+ process . env . DD_DYNAMIC_INSTRUMENTATION_UPLOAD_INTERVAL_SECONDS = '0.1'
521524 process . env . DD_TRACE_GLOBAL_TAGS = 'foo:bar,baz:qux'
522525 process . env . DD_TRACE_SAMPLE_RATE = '0.5'
523526 process . env . DD_TRACE_RATE_LIMIT = '-1'
@@ -625,6 +628,7 @@ describe('Config', () => {
625628 expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.enabled' , true )
626629 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactedIdentifiers' , [ 'foo' , 'bar' ] )
627630 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactionExcludedIdentifiers' , [ 'a' , 'b' , 'c' ] )
631+ expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.uploadIntervalSeconds' , 0.1 )
628632 expect ( config ) . to . have . property ( 'env' , 'test' )
629633 expect ( config ) . to . have . property ( 'sampleRate' , 0.5 )
630634 expect ( config ) . to . have . property ( 'traceEnabled' , true )
@@ -743,6 +747,7 @@ describe('Config', () => {
743747 { name : 'dynamicInstrumentation.enabled' , value : true , origin : 'env_var' } ,
744748 { name : 'dynamicInstrumentation.redactedIdentifiers' , value : [ 'foo' , 'bar' ] , origin : 'env_var' } ,
745749 { name : 'dynamicInstrumentation.redactionExcludedIdentifiers' , value : [ 'a' , 'b' , 'c' ] , origin : 'env_var' } ,
750+ { name : 'dynamicInstrumentation.uploadIntervalSeconds' , value : 0.1 , origin : 'env_var' } ,
746751 { name : 'env' , value : 'test' , origin : 'env_var' } ,
747752 { name : 'experimental.enableGetRumData' , value : true , origin : 'env_var' } ,
748753 { name : 'experimental.exporter' , value : 'log' , origin : 'env_var' } ,
@@ -997,7 +1002,8 @@ describe('Config', () => {
9971002 dynamicInstrumentation : {
9981003 enabled : true ,
9991004 redactedIdentifiers : [ 'foo' , 'bar' ] ,
1000- redactionExcludedIdentifiers : [ 'a' , 'b' , 'c' ]
1005+ redactionExcludedIdentifiers : [ 'a' , 'b' , 'c' ] ,
1006+ uploadIntervalSeconds : 0.1
10011007 } ,
10021008 experimental : {
10031009 b3 : true ,
@@ -1046,6 +1052,7 @@ describe('Config', () => {
10461052 expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.enabled' , true )
10471053 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactedIdentifiers' , [ 'foo' , 'bar' ] )
10481054 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactionExcludedIdentifiers' , [ 'a' , 'b' , 'c' ] )
1055+ expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.uploadIntervalSeconds' , 0.1 )
10491056 expect ( config ) . to . have . property ( 'env' , 'test' )
10501057 expect ( config ) . to . have . property ( 'sampleRate' , 0.5 )
10511058 expect ( config ) . to . have . property ( 'logger' , logger )
@@ -1129,6 +1136,7 @@ describe('Config', () => {
11291136 { name : 'dynamicInstrumentation.enabled' , value : true , origin : 'code' } ,
11301137 { name : 'dynamicInstrumentation.redactedIdentifiers' , value : [ 'foo' , 'bar' ] , origin : 'code' } ,
11311138 { name : 'dynamicInstrumentation.redactionExcludedIdentifiers' , value : [ 'a' , 'b' , 'c' ] , origin : 'code' } ,
1139+ { name : 'dynamicInstrumentation.uploadIntervalSeconds' , value : 0.1 , origin : 'code' } ,
11321140 { name : 'env' , value : 'test' , origin : 'code' } ,
11331141 { name : 'experimental.enableGetRumData' , value : true , origin : 'code' } ,
11341142 { name : 'experimental.exporter' , value : 'log' , origin : 'code' } ,
@@ -1340,6 +1348,7 @@ describe('Config', () => {
13401348 process . env . DD_DYNAMIC_INSTRUMENTATION_ENABLED = 'true'
13411349 process . env . DD_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS = 'foo,bar'
13421350 process . env . DD_DYNAMIC_INSTRUMENTATION_REDACTION_EXCLUDED_IDENTIFIERS = 'a,b,c'
1351+ process . env . DD_DYNAMIC_INSTRUMENTATION_UPLOAD_INTERVAL_SECONDS = '0.1'
13431352 process . env . DD_API_KEY = '123'
13441353 process . env . DD_TRACE_SPAN_ATTRIBUTE_SCHEMA = 'v0'
13451354 process . env . DD_TRACE_PEER_SERVICE_DEFAULTS_ENABLED = 'false'
@@ -1425,7 +1434,8 @@ describe('Config', () => {
14251434 dynamicInstrumentation : {
14261435 enabled : false ,
14271436 redactedIdentifiers : [ 'foo2' , 'bar2' ] ,
1428- redactionExcludedIdentifiers : [ 'a2' , 'b2' ]
1437+ redactionExcludedIdentifiers : [ 'a2' , 'b2' ] ,
1438+ uploadIntervalSeconds : 0.2
14291439 } ,
14301440 experimental : {
14311441 b3 : false ,
@@ -1513,6 +1523,7 @@ describe('Config', () => {
15131523 expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.enabled' , false )
15141524 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactedIdentifiers' , [ 'foo2' , 'bar2' ] )
15151525 expect ( config ) . to . have . nested . deep . property ( 'dynamicInstrumentation.redactionExcludedIdentifiers' , [ 'a2' , 'b2' ] )
1526+ expect ( config ) . to . have . nested . property ( 'dynamicInstrumentation.uploadIntervalSeconds' , 0.2 )
15161527 expect ( config ) . to . have . property ( 'env' , 'development' )
15171528 expect ( config ) . to . have . property ( 'clientIpEnabled' , true )
15181529 expect ( config ) . to . have . property ( 'clientIpHeader' , 'x-true-client-ip' )
0 commit comments