File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
aws_lambda_powertools/tracing Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ class BaseSegment(abc.ABC):
10
10
"""Holds common properties and methods on segment and subsegment."""
11
11
12
12
@abc .abstractmethod
13
- def close (self , end_time : Optional [float ] = None ):
13
+ def close (self , end_time : Optional [int ] = None ):
14
14
"""Close the trace entity by setting `end_time`
15
15
and flip the in progress flag to False.
16
16
17
17
Parameters
18
18
----------
19
- end_time: float
19
+ end_time: int
20
20
Time in epoch seconds, by default current time will be used.
21
21
"""
22
22
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ def _add_response_as_metadata(
747
747
method name to add as metadata key, by default None
748
748
data : Any, optional
749
749
data to add as subsegment metadata, by default None
750
- subsegment : BaseSegment , optional
750
+ subsegment : BaseSpan , optional
751
751
existing subsegment to add metadata on, by default None
752
752
capture_response : bool, optional
753
753
Do not include response as metadata
@@ -771,7 +771,7 @@ def _add_full_exception_as_metadata(
771
771
method name to add as metadata key, by default None
772
772
error : Exception
773
773
error to add as subsegment metadata, by default None
774
- subsegment : BaseSegment
774
+ subsegment : BaseSpan
775
775
existing subsegment to add metadata on, by default None
776
776
capture_error : bool, optional
777
777
Do not include error as metadata, by default True
You can’t perform that action at this time.
0 commit comments