Skip to content

Commit a6a3e86

Browse files
authored
Fix end_time param type docstring (#426)
1 parent 692a439 commit a6a3e86

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

aws_xray_sdk/core/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def end_segment(self, end_time=None):
4444
"""
4545
End the current active segment.
4646
47-
:param int end_time: epoch in seconds. If not specified the current
47+
:param float end_time: epoch in seconds. If not specified the current
4848
system time will be used.
4949
"""
5050
entity = self.get_trace_entity()
@@ -75,7 +75,7 @@ def end_subsegment(self, end_time=None):
7575
End the current active segment. Return False if there is no
7676
subsegment to end.
7777
78-
:param int end_time: epoch in seconds. If not specified the current
78+
:param float end_time: epoch in seconds. If not specified the current
7979
system time will be used.
8080
"""
8181
subsegment = self.get_trace_entity()

aws_xray_sdk/core/models/entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def close(self, end_time=None):
6464
Close the trace entity by setting `end_time`
6565
and flip the in progress flag to False.
6666
67-
:param int end_time: Epoch in seconds. If not specified
67+
:param float end_time: Epoch in seconds. If not specified
6868
current time will be used.
6969
"""
7070
self._check_ended()

aws_xray_sdk/core/models/subsegment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def close(self, end_time=None):
133133
and flip the in progress flag to False. Also decrement
134134
parent segment's ref counter by 1.
135135
136-
:param int end_time: Epoch in seconds. If not specified
136+
:param float end_time: Epoch in seconds. If not specified
137137
current time will be used.
138138
"""
139139
super().close(end_time)

0 commit comments

Comments
 (0)