File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
aws-distro-opentelemetry-node-autoinstrumentation/src Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -345,8 +345,6 @@ export class AwsMetricAttributeGenerator implements MetricAttributeGenerator {
345345
346346 // Special handling for Lambda invoke operations
347347 if ( AwsMetricAttributeGenerator . isLambdaInvokeOperation ( span ) ) {
348- // AWS_LAMBDA_FUNCTION_NAME is guaranteed to contain function name (not ARN)
349- // due to logic in Lambda botocore patches during instrumentation
350348 const lambdaFunctionName = span . attributes [ AWS_ATTRIBUTE_KEYS . AWS_LAMBDA_FUNCTION_NAME ] ;
351349 // If Lambda name is not present, use UnknownRemoteService
352350 // This is intentional - we want to clearly indicate when the Lambda function name
@@ -431,8 +429,6 @@ export class AwsMetricAttributeGenerator implements MetricAttributeGenerator {
431429 // see normalize_remote_service_name for more information.
432430 if ( ! AwsMetricAttributeGenerator . isLambdaInvokeOperation ( span ) ) {
433431 remoteResourceType = NORMALIZED_LAMBDA_SERVICE_NAME + '::Function' ;
434- // AWS_LAMBDA_FUNCTION_NAME is guaranteed to contain function name (not ARN)
435- // due to logic in Lambda botocore patches during instrumentation
436432 remoteResourceIdentifier = AwsMetricAttributeGenerator . escapeDelimiters (
437433 span . attributes [ AWS_ATTRIBUTE_KEYS . AWS_LAMBDA_FUNCTION_NAME ]
438434 ) ;
You can’t perform that action at this time.
0 commit comments