Skip to content

Commit 8c6ffec

Browse files
authored
feat: Replace list with set (#236)
1 parent b36ab47 commit 8c6ffec

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
@@ -334,7 +334,7 @@ def extract_dd_trace_context(event, lambda_context, extractor=None):
334334
parent_id,
335335
sampling_priority,
336336
) = extract_context_custom_extractor(extractor, event, lambda_context)
337-
elif isinstance(event, (list, dict)) and "headers" in event:
337+
elif isinstance(event, (set, dict)) and "headers" in event:
338338
(
339339
trace_id,
340340
parent_id,

0 commit comments

Comments
 (0)