From 3522dceb7ebab43c41ca3ccbfd13660b51023c51 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Thu, 5 Dec 2024 16:52:56 +0100 Subject: [PATCH] . --- sentry_sdk/integrations/aws_lambda.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)