Skip to content

Commit a9aa1b9

Browse files
committed
remove unecessary comments about aws lambda name attribute
1 parent 3cf9d2a commit a9aa1b9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-metric-attribute-generator.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)