diff --git a/sentry_sdk/integrations/aws_lambda.py b/sentry_sdk/integrations/aws_lambda.py index 5c4bccdfbc..cd2b3cc417 100644 --- a/sentry_sdk/integrations/aws_lambda.py +++ b/sentry_sdk/integrations/aws_lambda.py @@ -165,9 +165,7 @@ def sentry_handler(aws_event, aws_context, *args, **kwargs): name=aws_context.function_name, source=TRANSACTION_SOURCE_COMPONENT, origin=AwsLambdaIntegration.origin, - attributes=_prepopulate_attributes( - request_data, aws_context, headers - ), + attributes=_prepopulate_attributes(request_data, aws_context), ): try: return handler(aws_event, aws_context, *args, **kwargs)