File tree 1 file changed +3
-3
lines changed
opentelemetry-sdk/tests/logs
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,15 @@ def __str__(self):
251
251
self .assertTrue (isinstance (log_record .body , str ))
252
252
self .assertEqual (log_record .body , "CustomException stringified" )
253
253
self .assertEqual (
254
- log_record .attributes [SpanAttributes .EXCEPTION_TYPE ],
254
+ log_record .attributes [exception_attributes .EXCEPTION_TYPE ],
255
255
CustomException .__name__ ,
256
256
)
257
257
self .assertEqual (
258
- log_record .attributes [SpanAttributes .EXCEPTION_MESSAGE ],
258
+ log_record .attributes [exception_attributes .EXCEPTION_MESSAGE ],
259
259
"CustomException message" ,
260
260
)
261
261
stack_trace = log_record .attributes [
262
- SpanAttributes .EXCEPTION_STACKTRACE
262
+ exception_attributes .EXCEPTION_STACKTRACE
263
263
]
264
264
self .assertIsInstance (stack_trace , str )
265
265
self .assertTrue ("Traceback" in stack_trace )
You can’t perform that action at this time.
0 commit comments