We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6936bba commit 268c1e5Copy full SHA for 268c1e5
1 file changed
datadog_lambda/tracing.py
@@ -297,14 +297,16 @@ def extract_context_from_sqs_or_sns_event_or_context(
297
if dd_json_data:
298
dd_data = json.loads(dd_json_data)
299
300
- if is_step_function_event(dd_data):
301
- try:
302
- return extract_context_from_step_functions(dd_data, None)
303
- except Exception:
304
- logger.debug(
305
- "Failed to extract Step Functions context from SQS/SNS event."
306
- )
307
if idx == 0:
+ if is_step_function_event(dd_data):
+ try:
+ return extract_context_from_step_functions(
+ dd_data, None
+ )
+ except Exception:
+ logger.debug(
308
+ "Failed to extract Step Functions context from SQS/SNS event."
309
310
context = propagator.extract(dd_data)
311
if not config.data_streams_enabled:
312
break
0 commit comments