@@ -201,12 +201,12 @@ def test_sqs_client(self):
201201 self .assertEqual (len (spans ), 1 )
202202 actual = span .attributes
203203 self .assertRegex (actual ["aws.request_id" ], r"[A-Z0-9]{52}" )
204- del actual ["aws.request_id" ]
205204 self .assertEqual (
206205 actual ,
207206 {
208207 "aws.operation" : "ListQueues" ,
209208 "aws.region" : "us-east-1" ,
209+ "aws.request_id" : actual ["aws.request_id" ],
210210 "aws.service" : "sqs" ,
211211 "retry_attempts" : 0 ,
212212 "http.status_code" : 200 ,
@@ -232,12 +232,12 @@ def test_sqs_send_message(self):
232232 self .assertRegex (
233233 create_queue_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
234234 )
235- del create_queue_attributes ["aws.request_id" ]
236235 self .assertEqual (
237236 create_queue_attributes ,
238237 {
239238 "aws.operation" : "CreateQueue" ,
240239 "aws.region" : "us-east-1" ,
240+ "aws.request_id" : create_queue_attributes ["aws.request_id" ],
241241 "aws.service" : "sqs" ,
242242 "retry_attempts" : 0 ,
243243 "http.status_code" : 200 ,
@@ -247,13 +247,13 @@ def test_sqs_send_message(self):
247247 self .assertRegex (
248248 send_msg_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
249249 )
250- del send_msg_attributes ["aws.request_id" ]
251250 self .assertEqual (
252251 send_msg_attributes ,
253252 {
254253 "aws.operation" : "SendMessage" ,
255254 "aws.queue_url" : response ["QueueUrl" ],
256255 "aws.region" : "us-east-1" ,
256+ "aws.request_id" : send_msg_attributes ["aws.request_id" ],
257257 "aws.service" : "sqs" ,
258258 "retry_attempts" : 0 ,
259259 "http.status_code" : 200 ,
@@ -468,13 +468,13 @@ def test_dynamodb_client(self):
468468 self .assertRegex (
469469 create_table_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
470470 )
471- del create_table_attributes ["aws.request_id" ]
472471 self .assertEqual (
473472 create_table_attributes ,
474473 {
475474 "aws.operation" : "CreateTable" ,
476475 "aws.region" : "us-west-2" ,
477476 "aws.service" : "dynamodb" ,
477+ "aws.request_id" : create_table_attributes ["aws.request_id" ],
478478 "aws.table_name" : "test_table_name" ,
479479 "retry_attempts" : 0 ,
480480 "http.status_code" : 200 ,
@@ -484,12 +484,12 @@ def test_dynamodb_client(self):
484484 self .assertRegex (
485485 put_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
486486 )
487- del put_item_attributes ["aws.request_id" ]
488487 self .assertEqual (
489488 put_item_attributes ,
490489 {
491490 "aws.operation" : "PutItem" ,
492491 "aws.region" : "us-west-2" ,
492+ "aws.request_id" : put_item_attributes ["aws.request_id" ],
493493 "aws.service" : "dynamodb" ,
494494 "aws.table_name" : "test_table_name" ,
495495 "retry_attempts" : 0 ,
@@ -500,12 +500,12 @@ def test_dynamodb_client(self):
500500 self .assertRegex (
501501 get_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
502502 )
503- del get_item_attributes ["aws.request_id" ]
504503 self .assertEqual (
505504 get_item_attributes ,
506505 {
507506 "aws.operation" : "GetItem" ,
508507 "aws.region" : "us-west-2" ,
508+ "aws.request_id" : get_item_attributes ["aws.request_id" ],
509509 "aws.service" : "dynamodb" ,
510510 "aws.table_name" : "test_table_name" ,
511511 "retry_attempts" : 0 ,
0 commit comments