There was an error while loading. Please reload this page.
1 parent 884d8ba commit 5bfc127Copy full SHA for 5bfc127
1 file changed
opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
@@ -997,7 +997,11 @@ def record_exception(
997
)
998
module = type(exception).__module__
999
qualname = type(exception).__qualname__
1000
- exception_type = f"{module}.{qualname}" if module and module != "builtins" else qualname
+ exception_type = (
1001
+ f"{module}.{qualname}"
1002
+ if module and module != "builtins"
1003
+ else qualname
1004
+ )
1005
_attributes: MutableMapping[str, types.AttributeValue] = {
1006
"exception.type": exception_type,
1007
"exception.message": str(exception),
0 commit comments