Skip to content

Commit

Permalink
Fix end_time param type docstring (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
srprash authored Apr 22, 2024
1 parent 692a439 commit a6a3e86
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions aws_xray_sdk/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion aws_xray_sdk/core/models/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion aws_xray_sdk/core/models/subsegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6a3e86

Please sign in to comment.