Skip to content

Commit 79cfa08

Browse files
committed
remove unecessary comments about aws lambda function name attribute
1 parent f72191a commit 79cfa08

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/_aws_metric_attribute_generator.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ def _normalize_remote_service_name(span: ReadableSpan, service_name: str) -> str
327327

328328
# Special handling for Lambda invoke operations
329329
if _is_lambda_invoke_operation(span):
330-
# AWS_LAMBDA_FUNCTION_NAME is guaranteed to contain function name (not ARN)
331-
# due to logic in Lambda botocore patches during instrumentation
332330
lambda_function_name = span.attributes.get(AWS_LAMBDA_FUNCTION_NAME)
333331
# If Lambda name is not present, use UnknownRemoteService
334332
# This is intentional - we want to clearly indicate when the Lambda function name
@@ -471,8 +469,6 @@ def _set_remote_type_and_identifier(span: ReadableSpan, attributes: BoundedAttri
471469
# see normalize_remote_service_name for more information.
472470
if not _is_lambda_invoke_operation(span):
473471
remote_resource_type = _NORMALIZED_LAMBDA_SERVICE_NAME + "::Function"
474-
# AWS_LAMBDA_FUNCTION_NAME is guaranteed to contain function name (not ARN)
475-
# due to logic in Lambda botocore patches during instrumentation
476472
remote_resource_identifier = _escape_delimiters(span.attributes.get(AWS_LAMBDA_FUNCTION_NAME))
477473
cloudformation_primary_identifier = _escape_delimiters(span.attributes.get(AWS_LAMBDA_FUNCTION_ARN))
478474
elif is_key_present(span, AWS_LAMBDA_RESOURCEMAPPING_ID):

0 commit comments

Comments
 (0)