Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix end_time param type docstring #426

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading