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 268c1e5 commit 2f8dfaaCopy full SHA for 2f8dfaa
datadog_lambda/tracing.py
@@ -328,13 +328,11 @@ def extract_context_from_sqs_or_sns_event_or_context(
328
logger.debug(
329
"Found dd-trace injected trace context from AWSTraceHeader"
330
)
331
- context = Context(
+ return Context(
332
trace_id=int(trace_id_parts[2][8:], 16),
333
span_id=int(x_ray_context["parent_id"], 16),
334
sampling_priority=float(x_ray_context["sampled"]),
335
336
- if not config.data_streams_enabled:
337
- break
338
except Exception as e:
339
logger.debug("The trace extractor returned with error %s", e)
340
0 commit comments