We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf8f919 + 3582607 commit 5c38703Copy full SHA for 5c38703
aws_xray_sdk/core/lambda_launcher.py
@@ -72,7 +72,7 @@ def put_subsegment(self, subsegment):
72
current_entity = self.get_trace_entity()
73
74
if not self._is_subsegment(current_entity) and (getattr(current_entity, 'initializing', None) or isinstance(current_entity, DummySegment)):
75
- if global_sdk_config.sdk_enabled():
+ if global_sdk_config.sdk_enabled() and not os.getenv(LAMBDA_TRACE_HEADER_KEY):
76
log.warning("Subsegment %s discarded due to Lambda worker still initializing" % subsegment.name)
77
return
78
0 commit comments