Skip to content

Commit c4fa49b

Browse files
formatting fix
1 parent 0f71f84 commit c4fa49b

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

datadog_lambda/tracing.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,7 @@ def extract_context_from_sqs_or_sns_event_or_context(
300300
"Failed to extract Step Functions context from SQS/SNS event."
301301
)
302302
context = propagator.extract(dd_data)
303-
_dsm_set_checkpoint(
304-
dd_data,
305-
event_type,
306-
source_arn,
307-
)
303+
_dsm_set_checkpoint(dd_data, event_type, source_arn)
308304
return context
309305
else:
310306
# Handle case where trace context is injected into attributes.AWSTraceHeader
@@ -329,20 +325,12 @@ def extract_context_from_sqs_or_sns_event_or_context(
329325
sampling_priority=float(x_ray_context["sampled"]),
330326
)
331327
# Still want to set a DSM checkpoint even if DSM context not propagated
332-
_dsm_set_checkpoint(
333-
None,
334-
event_type,
335-
source_arn,
336-
)
328+
_dsm_set_checkpoint(None, event_type, source_arn)
337329
return extract_context_from_lambda_context(lambda_context)
338330
except Exception as e:
339331
logger.debug("The trace extractor returned with error %s", e)
340332
# Still want to set a DSM checkpoint even if DSM context not propagated
341-
_dsm_set_checkpoint(
342-
None,
343-
event_type,
344-
source_arn,
345-
)
333+
_dsm_set_checkpoint(None, event_type, source_arn)
346334
return extract_context_from_lambda_context(lambda_context)
347335

348336

0 commit comments

Comments
 (0)