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 2f8dfaa commit 63e41cbCopy full SHA for 63e41cb
datadog_lambda/tracing.py
@@ -328,11 +328,13 @@ def extract_context_from_sqs_or_sns_event_or_context(
328
logger.debug(
329
"Found dd-trace injected trace context from AWSTraceHeader"
330
)
331
- return Context(
+ context = 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