@@ -1195,26 +1195,6 @@ def test_sdk_client_span_with_remote_resource_attributes(self):
11951195 self ._mock_attribute ([AWS_LAMBDA_FUNCTION_NAME , SpanAttributes .RPC_METHOD ], [None , None ])
11961196 os .environ .pop ("LAMBDA_APPLICATION_SIGNALS_REMOTE_ENVIRONMENT" , None )
11971197
1198- # Test AWS Lambda Invoke scenario with user-configured lambda remote service
1199- os .environ ["LAMBDA_APPLICATION_SIGNALS_REMOTE_SERVICE" ] = "test_downstream_lambda2"
1200- self .span_mock .kind = SpanKind .CLIENT
1201- self ._mock_attribute (
1202- [AWS_LAMBDA_FUNCTION_NAME , SpanAttributes .RPC_METHOD ],
1203- ["testLambdaFunction" , "Invoke" ],
1204- keys ,
1205- values ,
1206- )
1207- dependency_attributes = _GENERATOR .generate_metric_attributes_dict_from_span (self .span_mock , self .resource ).get (
1208- DEPENDENCY_METRIC
1209- )
1210- self .assertEqual (dependency_attributes .get (AWS_REMOTE_SERVICE ), "test_downstream_lambda2" )
1211- self .assertEqual (dependency_attributes .get (AWS_REMOTE_ENVIRONMENT ), "lambda:default" )
1212- self .assertNotIn (AWS_REMOTE_RESOURCE_TYPE , dependency_attributes )
1213- self .assertNotIn (AWS_REMOTE_RESOURCE_IDENTIFIER , dependency_attributes )
1214- self .assertNotIn (AWS_CLOUDFORMATION_PRIMARY_IDENTIFIER , dependency_attributes )
1215- self ._mock_attribute ([AWS_LAMBDA_FUNCTION_NAME , SpanAttributes .RPC_METHOD ], [None , None ])
1216- os .environ .pop ("LAMBDA_APPLICATION_SIGNALS_REMOTE_SERVICE" , None )
1217-
12181198 # Test AWS Lambda non-Invoke scenario
12191199 self .span_mock .kind = SpanKind .CLIENT
12201200 lambda_arn = "arn:aws:lambda:us-east-1:123456789012:function:testLambda"
0 commit comments