Skip to content

Commit 98c9ac1

Browse files
committed
fix: handle msg_attributes being empty object
1 parent fa71671 commit 98c9ac1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎datadog_lambda/tracing.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def _extract_sqs_record_message_attribute_context(record):
537537
"""
538538
msg_attributes = record.get("messageAttributes")
539539

540-
if msg_attributes is None:
540+
if not msg_attributes:
541541
sns_record = _parse_sns_notification_from_sqs_body(record) or {}
542542
msg_attributes = sns_record.get("MessageAttributes") or {}
543543

0 commit comments

Comments
 (0)