@@ -128,7 +128,7 @@ describe('Plugin', () => {
128128 describe ( 'span pointers' , ( ) => {
129129 beforeEach ( ( ) => {
130130 DynamoDb . dynamoPrimaryKeyConfig = null
131- delete process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS
131+ delete process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS
132132 } )
133133
134134 function testSpanPointers ( { expectedHashes, operation } ) {
@@ -178,7 +178,7 @@ describe('Plugin', () => {
178178 testSpanPointers ( {
179179 expectedHashes : '27f424c8202ab35efbf8b0b444b1928f' ,
180180 operation : ( callback ) => {
181- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS =
181+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS =
182182 '{"OneKeyTable": ["name"]}'
183183 dynamo . putItem ( {
184184 TableName : oneKeyTableName ,
@@ -194,7 +194,7 @@ describe('Plugin', () => {
194194 it ( 'should not add links or error for putItem when config is invalid' , ( ) => {
195195 testSpanPointers ( {
196196 operation : ( callback ) => {
197- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"DifferentTable": ["test"]}'
197+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"DifferentTable": ["test"]}'
198198 dynamo . putItem ( {
199199 TableName : oneKeyTableName ,
200200 Item : {
@@ -209,7 +209,7 @@ describe('Plugin', () => {
209209 it ( 'should not add links or error for putItem when config is missing' , ( ) => {
210210 testSpanPointers ( {
211211 operation : ( callback ) => {
212- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = null
212+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = null
213213 dynamo . putItem ( {
214214 TableName : oneKeyTableName ,
215215 Item : {
@@ -263,7 +263,7 @@ describe('Plugin', () => {
263263 '9682c132f1900106a792f166d0619e0b'
264264 ] ,
265265 operation : ( callback ) => {
266- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"OneKeyTable": ["name"]}'
266+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"OneKeyTable": ["name"]}'
267267 dynamo . transactWriteItems ( {
268268 TransactItems : [
269269 {
@@ -308,7 +308,7 @@ describe('Plugin', () => {
308308 '9682c132f1900106a792f166d0619e0b'
309309 ] ,
310310 operation : ( callback ) => {
311- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"OneKeyTable": ["name"]}'
311+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"OneKeyTable": ["name"]}'
312312 dynamo . batchWriteItem ( {
313313 RequestItems : {
314314 [ oneKeyTableName ] : [
@@ -340,7 +340,7 @@ describe('Plugin', () => {
340340 testSpanPointers ( {
341341 expectedHashes : 'cc32f0e49ee05d3f2820ccc999bfe306' ,
342342 operation : ( callback ) => {
343- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
343+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
344344 dynamo . putItem ( {
345345 TableName : twoKeyTableName ,
346346 Item : {
@@ -355,7 +355,7 @@ describe('Plugin', () => {
355355 it ( 'should not add links or error for putItem when config is invalid' , ( ) => {
356356 testSpanPointers ( {
357357 operation : ( callback ) => {
358- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"DifferentTable": ["test"]}'
358+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"DifferentTable": ["test"]}'
359359 dynamo . putItem ( {
360360 TableName : twoKeyTableName ,
361361 Item : {
@@ -370,7 +370,7 @@ describe('Plugin', () => {
370370 it ( 'should not add links or error for putItem when config is missing' , ( ) => {
371371 testSpanPointers ( {
372372 operation : ( callback ) => {
373- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = null
373+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = null
374374 dynamo . putItem ( {
375375 TableName : twoKeyTableName ,
376376 Item : {
@@ -452,7 +452,7 @@ describe('Plugin', () => {
452452 '8a6f801cc4e7d1d5e0dd37e0904e6316'
453453 ] ,
454454 operation : ( callback ) => {
455- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
455+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
456456 dynamo . transactWriteItems ( {
457457 TransactItems : [
458458 {
@@ -505,7 +505,7 @@ describe('Plugin', () => {
505505 '8a6f801cc4e7d1d5e0dd37e0904e6316'
506506 ] ,
507507 operation : ( callback ) => {
508- process . env . DD_AWS_SDK_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
508+ process . env . DD_TRACE_DYNAMODB_TABLE_PRIMARY_KEYS = '{"TwoKeyTable": ["id", "binary"]}'
509509 dynamo . batchWriteItem ( {
510510 RequestItems : {
511511 [ twoKeyTableName ] : [
@@ -560,7 +560,7 @@ describe('Plugin', () => {
560560
561561 it ( 'should parse valid config with single table' , ( ) => {
562562 const configStr = '{"Table1": ["key1", "key2"]}'
563- dynamoDbInstance . _tracerConfig = { aws : { dynamoDb : { tablePrimaryKeys : configStr } } }
563+ dynamoDbInstance . _tracerConfig = { trace : { dynamoDb : { tablePrimaryKeys : configStr } } }
564564
565565 const result = dynamoDbInstance . getPrimaryKeyConfig ( )
566566 expect ( result ) . to . deep . equal ( {
@@ -570,7 +570,7 @@ describe('Plugin', () => {
570570
571571 it ( 'should parse valid config with multiple tables' , ( ) => {
572572 const configStr = '{"Table1": ["key1"], "Table2": ["key2", "key3"]}'
573- dynamoDbInstance . _tracerConfig = { aws : { dynamoDb : { tablePrimaryKeys : configStr } } }
573+ dynamoDbInstance . _tracerConfig = { trace : { dynamoDb : { tablePrimaryKeys : configStr } } }
574574
575575 const result = dynamoDbInstance . getPrimaryKeyConfig ( )
576576 expect ( result ) . to . deep . equal ( {
0 commit comments