Skip to content

Commit 83747fb

Browse files
committed
address cr feedback.
1 parent 2ef3c8b commit 83747fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

instrumentation/opentelemetry-instrumentation-botocore/tests/test_botocore_lambda.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ def test_get_function(self):
228228
function_arn = span.attributes.get(AWS_LAMBDA_FUNCTION_ARN)
229229
self.assertIsNotNone(function_arn)
230230
self.assertIn("lambda-function-name-foo", function_arn)
231+
self.assertIsNone(span.attributes.get(AWS_LAMBDA_RESOURCE_MAPPING_ID))
231232

232233
@mock_aws
233234
def test_create_event_source_mapping(self):
@@ -292,3 +293,5 @@ def test_get_event_source_mapping(self):
292293
uuid = span.attributes.get(AWS_LAMBDA_RESOURCE_MAPPING_ID)
293294
self.assertIsNotNone(uuid)
294295
self.assertEqual(expected_uuid, uuid)
296+
self.assertIsNone(span.attributes.get(AWS_LAMBDA_FUNCTION_ARN))
297+
self.assertIsNone(span.attributes.get(AWS_LAMBDA_FUNCTION_NAME))

0 commit comments

Comments
 (0)