diff --git a/aws_xray_sdk/core/context.py b/aws_xray_sdk/core/context.py index 63e994de..553c85a2 100644 --- a/aws_xray_sdk/core/context.py +++ b/aws_xray_sdk/core/context.py @@ -44,7 +44,7 @@ def end_segment(self, end_time=None): """ End the current active segment. - :param int end_time: epoch in seconds. If not specified the current + :param float end_time: epoch in seconds. If not specified the current system time will be used. """ entity = self.get_trace_entity() @@ -75,7 +75,7 @@ def end_subsegment(self, end_time=None): End the current active segment. Return False if there is no subsegment to end. - :param int end_time: epoch in seconds. If not specified the current + :param float end_time: epoch in seconds. If not specified the current system time will be used. """ subsegment = self.get_trace_entity() diff --git a/aws_xray_sdk/core/models/entity.py b/aws_xray_sdk/core/models/entity.py index a2150a5e..9a5d08e7 100644 --- a/aws_xray_sdk/core/models/entity.py +++ b/aws_xray_sdk/core/models/entity.py @@ -64,7 +64,7 @@ def close(self, end_time=None): Close the trace entity by setting `end_time` and flip the in progress flag to False. - :param int end_time: Epoch in seconds. If not specified + :param float end_time: Epoch in seconds. If not specified current time will be used. """ self._check_ended() diff --git a/aws_xray_sdk/core/models/subsegment.py b/aws_xray_sdk/core/models/subsegment.py index 3c4289e9..53f944de 100644 --- a/aws_xray_sdk/core/models/subsegment.py +++ b/aws_xray_sdk/core/models/subsegment.py @@ -133,7 +133,7 @@ def close(self, end_time=None): and flip the in progress flag to False. Also decrement parent segment's ref counter by 1. - :param int end_time: Epoch in seconds. If not specified + :param float end_time: Epoch in seconds. If not specified current time will be used. """ super().close(end_time)