File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ def pytest_exception_interact(
220220
221221 test_span .set_attributes (
222222 {
223- SpanAttributes .EXCEPTION_TYPE : str (excinfo .type ),
223+ SpanAttributes .EXCEPTION_TYPE : str (excinfo .type . __name__ ),
224224 SpanAttributes .EXCEPTION_MESSAGE : str (excinfo .value ),
225225 SpanAttributes .EXCEPTION_STACKTRACE : str (report .longrepr ),
226226 }
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def test_test_failure(
101101 "code.lineno" : 0 ,
102102 "code.filepath" : "test_test_failure.py" ,
103103 "code.namespace" : "" ,
104- SpanAttributes .EXCEPTION_TYPE : "<class ' AssertionError'> " ,
104+ SpanAttributes .EXCEPTION_TYPE : "AssertionError" ,
105105 SpanAttributes .EXCEPTION_MESSAGE : "foobar\n assert False" ,
106106 SpanAttributes .EXCEPTION_STACKTRACE : """> def test_error(): assert False, 'foobar'
107107E AssertionError: foobar
You can’t perform that action at this time.
0 commit comments