File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
opentelemetry-sdk/tests/logs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,15 @@ def __str__(self):
251251 self .assertTrue (isinstance (log_record .body , str ))
252252 self .assertEqual (log_record .body , "CustomException stringified" )
253253 self .assertEqual (
254- log_record .attributes [SpanAttributes .EXCEPTION_TYPE ],
254+ log_record .attributes [exception_attributes .EXCEPTION_TYPE ],
255255 CustomException .__name__ ,
256256 )
257257 self .assertEqual (
258- log_record .attributes [SpanAttributes .EXCEPTION_MESSAGE ],
258+ log_record .attributes [exception_attributes .EXCEPTION_MESSAGE ],
259259 "CustomException message" ,
260260 )
261261 stack_trace = log_record .attributes [
262- SpanAttributes .EXCEPTION_STACKTRACE
262+ exception_attributes .EXCEPTION_STACKTRACE
263263 ]
264264 self .assertIsInstance (stack_trace , str )
265265 self .assertTrue ("Traceback" in stack_trace )
You can’t perform that action at this time.
0 commit comments