@@ -58,7 +58,7 @@ def test_traced_client(self):
58
58
span = spans [0 ]
59
59
self .assertEqual (len (spans ), 1 )
60
60
self .assertEqual (
61
- dict ( span .attributes ) ,
61
+ span .attributes ,
62
62
{
63
63
"aws.operation" : "DescribeInstances" ,
64
64
"aws.region" : "us-west-2" ,
@@ -106,7 +106,7 @@ def test_s3_client(self):
106
106
span = spans [0 ]
107
107
self .assertEqual (len (spans ), 2 )
108
108
self .assertEqual (
109
- dict ( span .attributes ) ,
109
+ span .attributes ,
110
110
{
111
111
"aws.operation" : "ListBuckets" ,
112
112
"aws.region" : "us-west-2" ,
@@ -123,7 +123,7 @@ def test_s3_client(self):
123
123
assert spans
124
124
span = spans [2 ]
125
125
self .assertEqual (
126
- dict ( span .attributes ) ,
126
+ span .attributes ,
127
127
{
128
128
"aws.operation" : "ListObjects" ,
129
129
"aws.region" : "us-west-2" ,
@@ -144,7 +144,7 @@ def test_s3_put(self):
144
144
spans = self .memory_exporter .get_finished_spans ()
145
145
assert spans
146
146
self .assertEqual (len (spans ), 3 )
147
- create_bucket_attributes = dict ( spans [0 ].attributes )
147
+ create_bucket_attributes = spans [0 ].attributes
148
148
self .assertEqual (
149
149
create_bucket_attributes ,
150
150
{
@@ -154,7 +154,7 @@ def test_s3_put(self):
154
154
"http.status_code" : 200 ,
155
155
},
156
156
)
157
- put_object_attributes = dict ( spans [1 ].attributes )
157
+ put_object_attributes = spans [1 ].attributes
158
158
self .assertEqual (
159
159
put_object_attributes ,
160
160
{
@@ -165,7 +165,7 @@ def test_s3_put(self):
165
165
},
166
166
)
167
167
self .assertTrue ("params.Body" not in spans [1 ].attributes .keys ())
168
- get_object_attributes = dict ( spans [2 ].attributes )
168
+ get_object_attributes = spans [2 ].attributes
169
169
self .assertEqual (
170
170
get_object_attributes ,
171
171
{
@@ -186,7 +186,7 @@ def test_sqs_client(self):
186
186
assert spans
187
187
span = spans [0 ]
188
188
self .assertEqual (len (spans ), 1 )
189
- actual = dict ( span .attributes )
189
+ actual = span .attributes
190
190
self .assertRegex (actual ["aws.request_id" ], r"[A-Z0-9]{52}" )
191
191
del actual ["aws.request_id" ]
192
192
self .assertEqual (
@@ -214,7 +214,7 @@ def test_sqs_send_message(self):
214
214
spans = self .memory_exporter .get_finished_spans ()
215
215
assert spans
216
216
self .assertEqual (len (spans ), 2 )
217
- create_queue_attributes = dict ( spans [0 ].attributes )
217
+ create_queue_attributes = spans [0 ].attributes
218
218
self .assertRegex (
219
219
create_queue_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
220
220
)
@@ -228,7 +228,7 @@ def test_sqs_send_message(self):
228
228
"http.status_code" : 200 ,
229
229
},
230
230
)
231
- send_msg_attributes = dict ( spans [1 ].attributes )
231
+ send_msg_attributes = spans [1 ].attributes
232
232
self .assertRegex (
233
233
send_msg_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
234
234
)
@@ -257,7 +257,7 @@ def test_kinesis_client(self):
257
257
span = spans [0 ]
258
258
self .assertEqual (len (spans ), 1 )
259
259
self .assertEqual (
260
- dict ( span .attributes ) ,
260
+ span .attributes ,
261
261
{
262
262
"aws.operation" : "ListStreams" ,
263
263
"aws.region" : "us-east-1" ,
@@ -302,7 +302,7 @@ def test_lambda_client(self):
302
302
span = spans [0 ]
303
303
self .assertEqual (len (spans ), 1 )
304
304
self .assertEqual (
305
- dict ( span .attributes ) ,
305
+ span .attributes ,
306
306
{
307
307
"aws.operation" : "ListFunctions" ,
308
308
"aws.region" : "us-east-1" ,
@@ -322,7 +322,7 @@ def test_kms_client(self):
322
322
span = spans [0 ]
323
323
self .assertEqual (len (spans ), 1 )
324
324
self .assertEqual (
325
- dict ( span .attributes ) ,
325
+ span .attributes ,
326
326
{
327
327
"aws.operation" : "ListKeys" ,
328
328
"aws.region" : "us-east-1" ,
@@ -345,7 +345,7 @@ def test_sts_client(self):
345
345
span = spans [0 ]
346
346
self .assertEqual (len (spans ), 1 )
347
347
self .assertEqual (
348
- dict ( span .attributes ) ,
348
+ span .attributes ,
349
349
{
350
350
"aws.operation" : "GetCallerIdentity" ,
351
351
"aws.region" : "us-east-1" ,
@@ -383,7 +383,7 @@ def test_dynamodb_client(self):
383
383
spans = self .memory_exporter .get_finished_spans ()
384
384
assert spans
385
385
self .assertEqual (len (spans ), 3 )
386
- create_table_attributes = dict ( spans [0 ].attributes )
386
+ create_table_attributes = spans [0 ].attributes
387
387
self .assertRegex (
388
388
create_table_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
389
389
)
@@ -398,7 +398,7 @@ def test_dynamodb_client(self):
398
398
"http.status_code" : 200 ,
399
399
},
400
400
)
401
- put_item_attributes = dict ( spans [1 ].attributes )
401
+ put_item_attributes = spans [1 ].attributes
402
402
self .assertRegex (
403
403
put_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
404
404
)
@@ -413,7 +413,7 @@ def test_dynamodb_client(self):
413
413
"http.status_code" : 200 ,
414
414
},
415
415
)
416
- get_item_attributes = dict ( spans [2 ].attributes )
416
+ get_item_attributes = spans [2 ].attributes
417
417
self .assertRegex (
418
418
get_item_attributes ["aws.request_id" ], r"[A-Z0-9]{52}"
419
419
)
0 commit comments