Skip to content
Merged
Changes from 1 commit
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
6 changes: 4 additions & 2 deletions opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,9 +994,11 @@ def record_exception(
traceback.format_exception(
type(exception), value=exception, tb=exception.__traceback__
)
)
)
Comment thread
emdneto marked this conversation as resolved.
Outdated
module = exception.__class__.__module__ if exception.__class__.__module__ != "builtins" else ""
Comment thread
emdneto marked this conversation as resolved.
Outdated
exc_type = f"{module}.{exception.__class__.__qualname__}" if module else exception.__class__.__qualname__
_attributes: MutableMapping[str, types.AttributeValue] = {
"exception.type": exception.__class__.__name__,
"exception.type": exc_type,
"exception.message": str(exception),
"exception.stacktrace": stacktrace,
"exception.escaped": str(escaped),
Expand Down