We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf737b0 commit 678d86bCopy full SHA for 678d86b
datadog_lambda/tracing.py
@@ -70,11 +70,9 @@
70
71
def _dsm_set_context_sqs_or_sns_event(event, event_type):
72
for record in event.get("Records", [])[1:]:
73
- arn = _dsm_get_source_arn(record, event_type)
74
- if not arn:
75
- continue
76
- context = extract_context_from_sqs_or_sns_record(record)
77
- _dsm_set_checkpoint(context, event_type, arn)
+ if arn := _dsm_get_source_arn(record, event_type):
+ context = extract_context_from_sqs_or_sns_record(record)
+ _dsm_set_checkpoint(context, event_type, arn)
78
79
80
def _dsm_set_context_kinesis_event(event):
0 commit comments