Skip to content

Commit 2f8dfaa

Browse files
add more batch processing tests
1 parent 268c1e5 commit 2f8dfaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datadog_lambda/tracing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,11 @@ def extract_context_from_sqs_or_sns_event_or_context(
328328
logger.debug(
329329
"Found dd-trace injected trace context from AWSTraceHeader"
330330
)
331-
context = Context(
331+
return Context(
332332
trace_id=int(trace_id_parts[2][8:], 16),
333333
span_id=int(x_ray_context["parent_id"], 16),
334334
sampling_priority=float(x_ray_context["sampled"]),
335335
)
336-
if not config.data_streams_enabled:
337-
break
338336
except Exception as e:
339337
logger.debug("The trace extractor returned with error %s", e)
340338

0 commit comments

Comments
 (0)