Skip to content

Commit

Permalink
add optional parameter to record_exception method
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyagupta30 committed Oct 14, 2020
1 parent 6019a91 commit 63f57b6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ def set_status(self, status: Status) -> None:
"""

@abc.abstractmethod
def record_exception(self, exception: Exception) -> None:
def record_exception(
self,
exception: Exception,
attributes: types.Attributes = None,
timestamp: typing.Optional[int] = None,
) -> None:
"""Records an exception as a span event."""

def __enter__(self) -> "Span":
Expand Down

0 comments on commit 63f57b6

Please sign in to comment.