8000
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.
2 parents 4f4349b + 1ea7768 commit 6a4f7f4Copy full SHA for 6a4f7f4
aws_xray_sdk/core/context.py
@@ -78,11 +78,13 @@ def end_subsegment(self, end_time=None):
78
:param float end_time: epoch in seconds. If not specified the current
79
system time will be used.
80
"""
81
- subsegment = self.get_trace_entity()
82
- if self._is_subsegment(subsegment):
83
- subsegment.close(end_time)
+ entity = self.get_trace_entity()
+ if self._is_subsegment(entity):
+ entity.close(end_time)
84
self._local.entities.pop()
85
return True
86
+ elif isinstance(entity, DummySegment):
87
+ return False
88
else:
89
log.warning("No subsegment to end.")
90
return False
0 commit comments