Skip to content

Commit b8ff3fb

Browse files
fix
1 parent 1a9df0a commit b8ff3fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_lambda/tracing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def extract_context_from_sqs_or_sns_event_or_context(
263263
sns_record = first_record.get("Sns") or {}
264264
# SNS->SQS event would extract SNS arn without this check
265265
if event_source.equals(EventTypes.SNS):
266-
arn = sns_record.get("TopicArn", "")
266+
source_arn = sns_record.get("TopicArn", "")
267267
msg_attributes = sns_record.get("MessageAttributes") or {}
268268
dd_payload = msg_attributes.get("_datadog")
269269
if dd_payload:

0 commit comments

Comments
 (0)