Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto committed Apr 8, 2024
1 parent 884d8ba commit 5bfc127
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,11 @@ def record_exception(
)
module = type(exception).__module__
qualname = type(exception).__qualname__
exception_type = f"{module}.{qualname}" if module and module != "builtins" else qualname
exception_type = (
f"{module}.{qualname}"
if module and module != "builtins"
else qualname
)
_attributes: MutableMapping[str, types.AttributeValue] = {
"exception.type": exception_type,
"exception.message": str(exception),
Expand Down

0 comments on commit 5bfc127

Please sign in to comment.