@@ -201,12 +201,12 @@ def test_sqs_client(self):
201
201
self .assertEqual (len (spans ), 1 )
202
202
actual = span .attributes
203
203
self .assertRegex (actual ["aws.request_id" ], r"[A-Z0-9]{52}" )
204
- del actual ["aws.request_id" ]
205
204
self .assertEqual (
206
205
actual ,
207
206
{
208
207
"aws.operation" : "ListQueues" ,
209
208
"aws.region" : "us-east-1" ,
209
+ "aws.request_id" : actual ["aws.request_id" ],
210
210
"aws.service" : "sqs" ,
211
211
"retry_attempts" : 0 ,
212
212
"http.status_code" : 200 ,
@@ -232,12 +232,12 @@ def test_sqs_send_message(self):
232
232
self .assertRegex (
233
233
create_queue_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
234
234
)
235
- del create_queue_attributes ["aws.request_id" ]
236
235
self .assertEqual (
237
236
create_queue_attributes ,
238
237
{
239
238
"aws.operation" : "CreateQueue" ,
240
239
"aws.region" : "us-east-1" ,
240
+ "aws.request_id" : create_queue_attributes ["aws.request_id" ],
241
241
"aws.service" : "sqs" ,
242
242
"retry_attempts" : 0 ,
243
243
"http.status_code" : 200 ,
@@ -247,13 +247,13 @@ def test_sqs_send_message(self):
247
247
self .assertRegex (
248
248
send_msg_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
249
249
)
250
- del send_msg_attributes ["aws.request_id" ]
251
250
self .assertEqual (
252
251
send_msg_attributes ,
253
252
{
254
253
"aws.operation" : "SendMessage" ,
255
254
"aws.queue_url" : response ["QueueUrl" ],
256
255
"aws.region" : "us-east-1" ,
256
+ "aws.request_id" : send_msg_attributes ["aws.request_id" ],
257
257
"aws.service" : "sqs" ,
258
258
"retry_attempts" : 0 ,
259
259
"http.status_code" : 200 ,
@@ -468,13 +468,13 @@ def test_dynamodb_client(self):
468
468
self .assertRegex (
469
469
create_table_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
470
470
)
471
- del create_table_attributes ["aws.request_id" ]
472
471
self .assertEqual (
473
472
create_table_attributes ,
474
473
{
475
474
"aws.operation" : "CreateTable" ,
476
475
"aws.region" : "us-west-2" ,
477
476
"aws.service" : "dynamodb" ,
477
+ "aws.request_id" : create_table_attributes ["aws.request_id" ],
478
478
"aws.table_name" : "test_table_name" ,
479
479
"retry_attempts" : 0 ,
480
480
"http.status_code" : 200 ,
@@ -484,12 +484,12 @@ def test_dynamodb_client(self):
484
484
self .assertRegex (
485
485
put_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
486
486
)
487
- del put_item_attributes ["aws.request_id" ]
488
487
self .assertEqual (
489
488
put_item_attributes ,
490
489
{
491
490
"aws.operation" : "PutItem" ,
492
491
"aws.region" : "us-west-2" ,
492
+ "aws.request_id" : put_item_attributes ["aws.request_id" ],
493
493
"aws.service" : "dynamodb" ,
494
494
"aws.table_name" : "test_table_name" ,
495
495
"retry_attempts" : 0 ,
@@ -500,12 +500,12 @@ def test_dynamodb_client(self):
500
500
self .assertRegex (
501
501
get_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
502
502
)
503
- del get_item_attributes ["aws.request_id" ]
504
503
self .assertEqual (
505
504
get_item_attributes ,
506
505
{
507
506
"aws.operation" : "GetItem" ,
508
507
"aws.region" : "us-west-2" ,
508
+ "aws.request_id" : get_item_attributes ["aws.request_id" ],
509
509
"aws.service" : "dynamodb" ,
510
510
"aws.table_name" : "test_table_name" ,
511
511
"retry_attempts" : 0 ,
0 commit comments